GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — nodejs-logging/samples at main · googleapis/nodejs-logging

This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Expand file tree

/

samples

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

samples

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
generated/v2
generated/v2
 
 
test
test
 
 
.eslintrc.yml
.eslintrc.yml
 
 
README.md
README.md
 
 
fluent.js
fluent.js
 
 
http-request.js
http-request.js
 
 
logs.js
logs.js
 
 
package.json
package.json
 
 
quickstart.js
quickstart.js
 
 
sinks.js
sinks.js
 
 

README.md

Outline

Google Cloud Platform logo

Cloud Logging: Node.js Samples

Open in Cloud Shell

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:

Guide Me

Table of Contents

  • Before you begin
  • Samples
    • Fluent
    • Log HTTP Request
    • Logs
    • Quickstart
    • Sinks

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

Fluent

View the source code.

Open in Cloud Shell

Usage:

node samples/fluent.js


Log HTTP Request

Log a message with httpRequest metadata.

View the source code.

Open in Cloud Shell

Usage:

node http-request my-project-id


Logs

View the source code.

Open in Cloud Shell

Usage:

node samples/logs.js


Quickstart

View the source code.

Open in Cloud Shell

Usage:

node samples/quickstart.js


Sinks

View the source code.

Open in Cloud Shell

Usage:

node samples/sinks.js

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.