void process() {
// empty iterator; set defaults
const LoggerSpecification spec;
- processSpecification(spec);
+ process(spec);
}
/// \brief Run-Time Initialization
// Set the additive flag.
logger.setAdditivity(spec.getAdditive());
- // Replace all appenders for this logger.
- logger.removeAllAppenders();
-
// Output options given?
if (spec.optionCount() > 0) {
+ // Replace all appenders for this logger.
+ logger.removeAllAppenders();
// Now process output specifications.
for (LoggerSpecification::const_iterator i = spec.begin();
i->destination);
}
}
- } else {
- // If no output options are given, use a default appender
- OutputOption opt;
- createConsoleAppender(logger, opt);
}
// Should anything be left in the buffer, this is the time to flush it.
getLogBuffer().flush();