good-stackdriver-transform
v0.1.3
Published
a transform stream for turning good server events into jsonPayload formatted LogEntry messages
Downloads
13
Readme
good-stackdriver-transform
:warning: we've discontinued development of this transform in favor of using good-bunyan in combination with @google-cloud/logging-bunyan
a transform stream for turning good
server events into jsonPayload
formatted LogEntry
messages for Stackdriver Logging on the
Google Cloud Platform
Usage
Installation
$ npm install good-stackdriver-transform -S
Config
Include the transform in your good reporter pipeline:
{
reporters: {
stackdriver: [
{
module: 'good-squeeze',
name: 'Squeeze',
args: [{log: '*', request: '*', response: '*', error: '*'}]
},
{module: 'good-stackdriver-transform'},
{
module: 'good-file',
args: ['/var/log/app_engine/custom_logs/logs.json']
}
]
}
}
If your application is running in the App Engine flexible environment, you can
write to a file under /var/log/app_engine/custom_logs/
,
as shown above.