0.0.4 • Published 8 years ago

dolphin-logger v0.0.4

Weekly downloads
1
License
AGPL
Repository
github
Last release
8 years ago

Logger for an application

Installation

npm install dolphin-logger --save

var Logger = require('dolphin-logger');

Methods

  • info
  • warn
  • error
  • debug

By default log level is "debug", for production mode better to set NODE_DEBUG_LEVEL=info The logger will write only error, warn and info logs.

Examples

var obj = {a:1};

Logger.info('Info message:', obj);

Logger.warn('warn message:', obj);

Logger.error('Wrror message:', obj);

Logger.debug('Debug message:', obj);
0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago