2.0.0 • Published 8 months ago

@totalsoft/pino-multitenancy v2.0.0

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

pino-multitenancy

This package provides a pino mixin for setting the tenant id property.

Installation

npm i @totalsoft/pino-multitenancy

or

yarn add @totalsoft/pino-multitenancy

Usage

const { tenantIdMixin } = require('@totalsoft/pino-multitenancy')
import { pino } from 'pino'

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

const logger = pino(options)
2.0.0

8 months ago

1.2.1

1 year ago

1.2.0

2 years ago

1.1.0

3 years ago