2.0.1 • Published 1 year ago

@totalsoft/pino-correlation v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

2.0.0

1 year ago

1.1.0

3 years ago