nl_tokens: Allows for runtime setting of log levels . Can be called at anytime to adjust log levels .
pl_tokens: function ( definedLogLevels ) { logLevels = this . _merge ( definedLogLevels ) ; // go through all the loggers for ( var key in winston . loggers . loggers ) { var logger = winston . loggers . loggers [ key ] ; if ( logLevels [ 'all' ] ) { if ( logLevels [ 'all' ] != 'none' ) { // turning on everything if ( logger . transports . console ) { logger . transports . console . level = logLevels [ 'all' ] ; } else { logger . add ( winston . transports . Console , { level : logLevels [ 'all' ] , json : false , timestamp : true , label : key , align : true } , false ) ; } } else { // all = none so remove everything logger . remove ( winston . transports . Console ) } } else { // individual log levels were set var level = logLevels [ key ] ; if ( logger . transports . console ) { // if there isn't even a console, nothing to do if ( level != 'none' ) { logger . transports . console . level = <mask> ; } else { // level = none, so turn it off logger . remove ( winston . transports . Console ) } } } } return this ; }