use of org.apache.qpid.server.logging.CompositeStartupMessageLogger in project qpid-broker-j by apache.
the class AbstractSystemConfig method initiateStartupLogging.
private EventLogger initiateStartupLogging() {
final EventLogger eventLogger = _eventLogger;
final EventLogger startupLogger;
if (isStartupLoggedToSystemOut()) {
// Create the composite (logging+SystemOut MessageLogger to be used during startup
MessageLogger[] messageLoggers = { new SystemOutMessageLogger(), eventLogger.getMessageLogger() };
CompositeStartupMessageLogger startupMessageLogger = new CompositeStartupMessageLogger(messageLoggers);
startupLogger = new EventLogger(startupMessageLogger);
} else {
startupLogger = eventLogger;
}
return startupLogger;
}
Aggregations