class
Sink
Source: sink.
A sink is an object that lets you to specify a set of log entries to export to a particular destination. Stackdriver Logging lets you export log entries to destinations including Cloud Storage buckets (for long term log storage), Google BigQuery datasets (for log analysis), Google Pub/Sub (for streaming to other applications).
Property
new Sink(logging, name)
Example
const {Logging} = require('@google-cloud/logging');
const logging = new Logging();
const sink = logging.sink('my-sink');
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
logging |
|
|
Logging instance. |
|
name |
|
|
Name of the sink. |
- See also