0.0.1 • Published 10 years ago
node-registry-winston v0.0.1
node-registy-winston
Plugin for node-registry that exposes the winston logger module to your project.
Installation
npm install node-registy-winston --saveUsage
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: truelogger.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
Licence
0.0.1
10 years ago