Skip to content

Latest commit

 

History

History

samples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Google Cloud Platform logo

Open in Cloud Shell

This module provides an easy to use, higher-level layer for working with Cloud Logging, compatible with Bunyan. Simply attach this as a transport to your existing Bunyan loggers.

Table of Contents

Before you begin

Before running the samples, make sure you've followed the steps outlined in Using the client library.

cd samples

npm install

cd ..

Samples

Express

View the source code.

Open in Cloud Shell

Usage:

node samples/express.js


Quickstart

View the source code.

Open in Cloud Shell

Usage:

node samples/quickstart.js


Explict Auth Setup

View the source code.

Open in Cloud Shell

Usage:

node samples/setup_explicit.js