@binxhealth/pino-stackdriver

3.0.0 • Public • Published

@binxhealth/pino-stackdriver

A utility that makes express-pino logs StackDriver-compatible

CI

Installation

yarn add @binxhealth/pino-stackdriver --dev

Usage

node server.js | npx pino-stackdriver

Or with a global install:

node server.js | pino-stackdriver

Or 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');

Dependents (0)

Package Sidebar

Install

npm i @binxhealth/pino-stackdriver

Weekly Downloads

44

Version

3.0.0

License

SEE LICENSE IN LICENSE

Unpacked Size

7.51 kB

Total Files

9

Last publish

Collaborators

  • ianwalter