fh-logger-helper
This module provides some sensible defaults for the Winston logger
If will set the level to 'error' by default, but this can be changed
by setting process.env.DEBUG_LEVEL
to a valid logging level, or with
the Logger.setLoggerLevel
method.
Valid log levels are: 'sys', 'error', 'warn', 'info', 'silly'
Use require('fh-logger-helper')
to use this module.
Example:
var Logger = ; Logger;Logger; Logger;Logger; Logger;Logger; Logger;Logger; Logger;Logger;
The following methods are provided:
Logger.setLoggerLevel(level [, callback])
Change the current log level and immediately apply it, then fire a callback, if supplied.
Example:
Logger; Logger;
Logger.killLoggingForTests()
Remove the logger to avoid it polluting the terminal while you run automated tests etc
Example:
Logger;