2.0.1 • Published 8 months ago

@totalsoft/pino-correlation v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

pino-correlation

This package provides a pino mixin for setting the correlation id property on the log event.

Installation

npm i @totalsoft/pino-correlation

or

yarn add @totalsoft/pino-correlation

Usage

const { correlationMixin } = require('@totalsoft/pino-correlation');
import { pino } from 'pino'

const options = {
  mixin(_context, _level) {
    return correlationMixin()
  }
}

const logger = pino(options);
2.0.1

8 months ago

2.0.0

8 months ago

1.1.0

3 years ago