lib/easylogger.js
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.replace(firstChar, firstChar.toLowerCase())

    if (exists) logger.transports[transportType].formatter = formatter
  }
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.replace(firstChar, firstChar.toLowerCase())

    if (exists) logger.transports[transportType].formatter = formatter
  }
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 . replace ( firstChar , firstChar . toLowerCase ( ) ) if ( exists ) logger . transports [ transportType ] . formatter = formatter }
Set custom formatter to trasnsports transportId : transport type where apply formatter formatter : function to format messages
Set custom formatter to trasnsports transportId : transport type where apply formatter formatter : function to format messages