lib/solid-logger.js
function _write(type, category, message){
    var config = this.config;

    this.adapters.forEach(function(adapter) {
        //Check configuration to see if we should continue.
        if(adapter.config.filter && (adapter.config.filter.indexOf(type) > -1)){
            return;
        }

        //We are not filtering this out. Continue
        adapter.write(type, category, message);
    });
}
function _write(type, category, message){
    var config = this.config;

    this.adapters.forEach(function(adapter) {
        //Check configuration to see if we should continue.
        if(adapter.config.filter && (adapter.config.filter.indexOf(type) > -1)){
            return;
        }

        //We are not filtering this out. Continue
        adapter.write(type, category, message);
    });
}
function _write ( type , category , message ) { var config = this . config ; this . adapters . forEach ( function ( adapter ) { //Check configuration to see if we should continue. if ( adapter . config . filter && ( adapter . config . filter . indexOf ( type ) > - 1 ) ) { return ; } //We are not filtering this out. Continue adapter . write ( type , category , message ) ; } ) ; }
Local method to load up a write 'job'. We create a tracker so that the async callbacks stay in order and then we
kick off the adapterWrite method which recursively loads the adapters and write per their 'write' method. It will
also load in the configuration for the adapter each time so you can have the same type of adapters with different
settings.
@param type error, debug, info, trace, warn
@param category User definted category for grouping log entries.
@param message Message to be logged.
Local method to load up a write job . We create a tracker so that the async callbacks stay in order and then we kick off the adapterWrite method which recursively loads the adapters and write per their write method . It will also load in the configuration for the adapter each time so you can have the same type of adapters with different settings .