node-registry-winston
v0.0.1
Published
Winston Logger module for Node Registry library
Downloads
2
Maintainers
Readme
node-registy-winston
Plugin for node-registry
that exposes the winston
logger module to your project.
Installation
npm install node-registy-winston --save
Usage
const Registry = require('node-registry');
Registry.logger.info('My little log line');
Configuration
Inside your config
file you can configure the winston
Logger transports. An example config file could look like this.
logger:
level: debug
transport:
options:
timestamp: true
colorize: true
prettyPrint: true
logger.level
Sets the level for the logger, defaults to INFO
logger.transport.type
Define the Winston Transport, defaults to Console
logger.transport.options
Object that represents the configuration for the Transport