node-registry-winston

0.0.1 • Public • Published

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

Licence

Apache Licence 2.0

Package Sidebar

Install

npm i node-registry-winston

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • vspasic