nl_tokens: Set custom formatter to trasnsports transportId : transport type where apply formatter formatter : function to format messages
pl_tokens: function ( transportType , formatter ) { var exists = contains ( cm . config . easylogger . transports , { "key" : "type" , "value" : transportType } , "exists" ) // It is needed because transport type begins whit upper case if you add a new instance // but, in object, its property is saved beggining with lower chase var firstChar = transportType . charAt ( 0 ) transportType = transportType . <mask> ( firstChar , firstChar . toLowerCase ( ) ) if ( exists ) logger . transports [ transportType ] . formatter = formatter }