Warning: This module cannot be used alone. See implementations below.
npm i --save-exact --save @rduk/logger @rduk/logger-winston-provider
# config.yml
---
logger:
default: winston
providers:
-
name: winston
type: '@rduk/logger-winston-provider'
level: debug
transports:
console: true
const logger = require('@rduk/logger');
logger.error('error');
logger.warn('warn');
logger.info('info');
logger.verbose('verbose');
logger.debug('debug');