所有 Logging 代码示例

Advanced Write

A more complicated example of how to write a log entry.

Bunyan and Express

Demonstrates how to set up and use Bunyan with Cloud Logging in a Node.js Express application.

Bunyan quickstart

Demonstrates how to set up Bunyan in a Node.js application.

View in documentation

Create

Demonstrates how to create a Cloud Logging Sink.

View in documentation

View in documentation

Delete

Demonstrates how to delete a Cloud Logging Sink.

View in documentation

Get

Demonstrates how to retrieve the metadata for a Cloud Logging Sink.

View in documentation

List

Demonstrates how to list Cloud Logging Sinks.

View in documentation

List

Demonstrates how to list the names of available Logs.

Logging quickstart

Demonstration of how to write a log entry.

View in documentation

Std logging

Demonstrates how to use Cloud Logging with Go std streams.

View in documentation

Update

Demonstrates how to update a Cloud Logging Sink.

View in documentation

Winston quickstart

Demonstrates how to set up Winston in a Node.js application.

View in documentation

Write

Demonstrates how to write a log entry.

View in documentation