@pliancy/logger
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @pliancy/logger

Weekly Downloads

8

Version

0.0.3

License

MIT

Unpacked Size

5.87 kB

Total Files

10

Last publish

Collaborators

  • justin.pliancy
  • pliancy-bot
  • santese