Google Cloud Logging allows you to store, search, analyze, monitor, and alert on log data and events from Google Cloud Platform and Amazon Web Services.
If you require lightweight dependencies, an experimental, minified version of
this library is available at @google-cloud/logging-min.
Note: logging-min
is experimental, and its feature surface is subject to change.
To install @google-cloud/logging-min
library run the following command:
npm install @google-cloud/logging-min
For an interactive tutorial on using the client library in a Node.js application, click Guide Me:
Before running the samples, make sure you've followed the steps outlined in Using the client library.
cd samples
npm install
cd ..
View the source code.
Usage:
node samples/fluent.js
Log a message with httpRequest metadata.
View the source code.
Usage:
node http-request my-project-id
View the source code.
Usage:
node samples/logs.js
View the source code.
Usage:
node samples/quickstart.js
View the source code.
Usage:
node samples/sinks.js