Skip to content

Releases: googleapis/nodejs-logging-winston

@google-cloud/logging-winston v0.3.1

02 Nov 19:39
Compare
Choose a tag to compare

release level

Dependencies

  • Updated dependencies

@google-cloud/logging-winston v0.3.0

02 Nov 19:38
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes!

  • Dropped support for Node.js versions below 4.0.0.

Features

  • Allow longer write consistency delay.

@google-cloud/logging-winston v0.2.0

02 Nov 19:36
Compare
Choose a tag to compare

release level

Features

  • Format logs to work better with Log Viewer and Error Reporting (#1997)

Bugfixes

  • Avoid printing to console during test (#1985)

@google-cloud/logging-winston v0.1.0

25 Oct 21:18
Compare
Choose a tag to compare

release level

This module provides an easy to use, higher-level layer for working with Stackdriver Logging, compatible with Winston. Simply attach this as a transport to your existing Winston loggers.

var winston = require('winston');
var transport = require('@google-cloud/logging-winston');

winston.add(transport, {
  projectId: 'grape-spaceship-123',
  keyFilename: '/path/to/keyfile.json',
  level: 'warning', // log at 'warning' and above
  resource: {
    type: 'global'
  }
});

winston.error('warp nacelles offline');
winston.verbose('sheilds at 99%');