Sink

Sink

A sink is an object that lets you to specify a set of log entries to export to a particular destination. Cloud 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).

See Introduction to Sinks

Constructor

new Sink(logging, name)

Parameters:
Name Type Description
logging Logging

Logging instance.

name string

Name of the sink.

Example
```
const {Logging} = require('@google-cloud/logging');
const logging = new Logging();
const sink = logging.sink('my-sink');
```

Members

name