nl_tokens: Get a { @link https : // github . com / winstonjs / winston|winston } logging instance that is configured based upon the set logging levels .
pl_tokens: function ( className ) { // figure out the level to use var level ; if ( winston . loggers . loggers [ className ] && winston . loggers . loggers [ className ] . transports . console ) { level = winston . loggers . loggers [ className ] . transports . console . level ; } if ( logLevels ) { if ( logLevels [ className ] ) { level = logLevels [ className ] ; } else if ( logLevels [ 'all' ] ) { level = logLevels [ 'all' ] ; } } // we figured it out if ( level && level != 'none' ) { winston . loggers . add ( className , { console : { json : false , timestamp : true , <mask> : className , align : true , level : ( winston . loggers . loggers [ className ] ) //already set ? winston . loggers . loggers [ className ] . transports . console . level : level } } ) ; } else { winston . loggers . add ( className ) . clear ( ) ; } return winston . loggers . get ( className ) ; }