0.1.3 • Published 7 years ago

good-stackdriver-transform v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

good-stackdriver-transform

No Maintenance Intended

: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

npm license

Build Status Codecov

Commitizen friendly Greenkeeper badge

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.

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago