lib/Core.class.js
/**
     * This method is called at the end of the event loop and will process all queued up events.
     */
This method is called at the end of the event loop and will process all queued up events.
This method is called at the end of the event loop and will process all queued up events .
process() {
        for (let event of this._events) {
            for (let pattern in this._loggers) {
                if (event.source.match(pattern)) {
                    for (let name of this._loggers[pattern].listAppenders()) {
                        let appender = Plugins.getInstance(name, 'appender');
                        let processors = [];
                        for (let processorName of appender.configuration.processors) {
                            processors.push(Plugins.getInstance(processorName, 'processor'));
                        }
                        processors.push(appender);
                        this._processChain([event], processors);
                    }
                }
            }
        }
    }
process ( ) { for ( let event of this . _events ) { for ( let pattern in this . _loggers ) { if ( event . source . match ( pattern ) ) { for ( let name of this . _loggers [ pattern ] . listAppenders ( ) ) { let appender = Plugins . getInstance ( name , 'appender' ) ; let processors = [ ] ; for ( let processorName of appender . configuration . processors ) { processors . push ( Plugins . getInstance ( processorName , 'processor' ) ) ; } processors . push ( appender ) ; this . _processChain ( [ event ] , processors ) ; } } } } }
This method is called at the end of the event loop and will process all queued up events.
This method is called at the end of the event loop and will process all queued up events .
//TODO this might be expensive, consider mapping events to appenders (via loggers) before instantiating them each time