@pliancy/logger

A Winston wrapper for use in Pliancy projects

Usage no npm install needed!

<script type="module">
  import pliancyLogger from 'https://cdn.skypack.dev/@pliancy/logger';
</script>

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