Search in sources :

Example 1 with LogConfigChangeSubject

use of org.mule.runtime.core.internal.logging.LogConfigChangeSubject in project mule by mulesoft.

the class MessageProcessingFlowTraceManager method initialise.

@Override
public void initialise() throws InitialisationException {
    LoggerContext context = LogManager.getContext(false);
    if (context != null && context instanceof LogConfigChangeSubject) {
        ((LogConfigChangeSubject) context).registerLogConfigChangeListener(logConfigChangeListener);
    }
    handleNotificationListeners();
}
Also used : LogConfigChangeSubject(org.mule.runtime.core.internal.logging.LogConfigChangeSubject) LoggerContext(org.apache.logging.log4j.spi.LoggerContext)

Example 2 with LogConfigChangeSubject

use of org.mule.runtime.core.internal.logging.LogConfigChangeSubject in project mule by mulesoft.

the class MessageProcessingFlowTraceManager method dispose.

@Override
public void dispose() {
    LoggerContext context = LogManager.getContext(false);
    if (context != null && context instanceof LogConfigChangeSubject) {
        ((LogConfigChangeSubject) context).unregisterLogConfigChangeListener(logConfigChangeListener);
    }
    removeNotificationListeners();
}
Also used : LogConfigChangeSubject(org.mule.runtime.core.internal.logging.LogConfigChangeSubject) LoggerContext(org.apache.logging.log4j.spi.LoggerContext)

Aggregations

LoggerContext (org.apache.logging.log4j.spi.LoggerContext)2 LogConfigChangeSubject (org.mule.runtime.core.internal.logging.LogConfigChangeSubject)2