3.0.0 • Published 6 years ago
@binxhealth/pino-stackdriver v3.0.0
@binxhealth/pino-stackdriver
A utility that makes express-pino logs StackDriver-compatible
Installation
yarn add @binxhealth/pino-stackdriver --devUsage
node server.js | npx pino-stackdriverOr with a global install:
node server.js | pino-stackdriverOr create a new stream and pass it to pino
import { createStream } from '@binxhealth/pino-stackdriver';
const logger = pino(
  {
    level: 'debug',
  },
  createStream()
);
logger.info('This works the same as usual...');
logger.error('...and will log to stdout with the correct Stackdriver format');