lib/Core.class.js
/**
     * Allows to set the entire configuration at once.
     *
     * @param {Object} configuration
     */
Allows to set the entire configuration at once.
@param {Object} configuration
Allows to set the entire configuration at once . @param { Object } configuration
configure(configuration) {
        if (!_.isEqual(configuration, this._currentConfiguration)) {
            for (let name in configuration.processors) {
                this.configureProcessor(name, configuration.processors[name]);
            }
            for (let name in configuration.appenders) {
                this.configureAppender(name, configuration.appenders[name]);
            }
            for (let name in configuration.configurators) {
                this.configureConfigurator(name, configuration.configurators[name]);
            }
            for (let pattern in configuration.loggers) {
                this.configureLogger(pattern, configuration.loggers[pattern]);
            }
            Plugins.emit('config', configuration);
        }
    }
configure ( configuration ) { if ( ! _ . isEqual ( configuration , this . _currentConfiguration ) ) { for ( let name in configuration . processors ) { this . configureProcessor ( name , configuration . processors [ name ] ) ; } for ( let name in configuration . appenders ) { this . configureAppender ( name , configuration . appenders [ name ] ) ; } for ( let name in configuration . configurators ) { this . configureConfigurator ( name , configuration . configurators [ name ] ) ; } for ( let pattern in configuration . loggers ) { this . configureLogger ( pattern , configuration . loggers [ pattern ] ) ; } Plugins . emit ( 'config' , configuration ) ; } }
Allows to set the entire configuration at once.
Allows to set the entire configuration at once .