good-stackdriver-transform

0.1.3 • Public • Published

good-stackdriver-transform

No Maintenance Intended

⚠️ 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.

Readme

Keywords

none

Package Sidebar

Install

npm i good-stackdriver-transform

Weekly Downloads

1

Version

0.1.3

License

MIT

Last publish

Collaborators

  • gain-bot
  • travi