Following are the common logger modules:   1) logger   SUMMARY   A simple logging library that combines the simple APIs of Ruby's logger.rb and browser-js console.log()   USAGE   A logger has 5 different levels of logging in a specific order:  'fatal', 'error', 'warn', 'info', 'debug'   Each of these log levels has its own method on the logging instance. You can set the maximum log level on a logger at runtime.   By default, a logger writes to STDOUT, but given a writeable file path, it will log directly to a file.   Instantiation:      // node/common.js style  var logger = require('./logger').createLogger(); // logs to STDOUT var logger = require('./logger').createLogger('development.log'); // logs to a file    2)  simple-node-logger    A simple multi-level logger for console, file, and rolling file appenders. Features include:   levels: trace, debug, info, warn, error and fatal levels (plus all and off)  flexible ap...
 
Comments
Post a Comment