Skip to content

GCP process logger which will stream the output of a process to GCP Cloud Logging

Notifications You must be signed in to change notification settings

pinpt/gcp-process-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCP Process Logger

This is a simple wrapper to log the output of a process to GCP Cloud Logging.

Example usage:

gcp-process-logger my-test-log --label foo=bar --label bar=foo -- npm run build

This will run anything after the -- as the command and pipe the output to the log name passed as the first argument.

Optionally, you can pass one or more labels as --label key=value which will be attached to the metadata of the log entry.

To control a non-default GCP project id, use --project-id=[ID] to setup the logger to use that id.

About

GCP process logger which will stream the output of a process to GCP Cloud Logging

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published