Search in sources :

Example 1 with CompositeStartupMessageLogger

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;
}
Also used : EventLogger(org.apache.qpid.server.logging.EventLogger) CompositeStartupMessageLogger(org.apache.qpid.server.logging.CompositeStartupMessageLogger) SystemOutMessageLogger(org.apache.qpid.server.logging.SystemOutMessageLogger) MessageLogger(org.apache.qpid.server.logging.MessageLogger) SystemOutMessageLogger(org.apache.qpid.server.logging.SystemOutMessageLogger) CompositeStartupMessageLogger(org.apache.qpid.server.logging.CompositeStartupMessageLogger)

Aggregations

CompositeStartupMessageLogger (org.apache.qpid.server.logging.CompositeStartupMessageLogger)1 EventLogger (org.apache.qpid.server.logging.EventLogger)1 MessageLogger (org.apache.qpid.server.logging.MessageLogger)1 SystemOutMessageLogger (org.apache.qpid.server.logging.SystemOutMessageLogger)1