@pliancy/logger
v0.0.3
Published
A Winston wrapper for use in Pliancy projects
Downloads
20
Readme
logger
A wrapper for the Winston logger that optionally accepts contextual metadata in the constructor.
Install
# Yarn
yarn add @pliancy/logger
# npm
npm i @pliancy/logger
Usage
const logger = new Logger('MyService', { target: 'someId', actor: 'someOtherId' })
logger.info('Revelry and awe are afoot')
Test
yarn test
# or
yarn test.watch
Test Coverage
yarn test.cov
# then
yarn cov.view