use of org.jboss.logmanager.LogContextSelector in project wildfly-core by wildfly.
the class EnvironmentRestorer method restoreLogContextSelector.
synchronized void restoreLogContextSelector() {
if (!logContextSelectorRestored) {
final LogContext logContext = defaultContexts.getLogContext();
if (logContext == LogContext.getSystemLogContext()) {
LogContext.setLogContextSelector(LogContext.DEFAULT_LOG_CONTEXT_SELECTOR);
} else {
LogContext.setLogContextSelector(new LogContextSelector() {
@Override
public LogContext getLogContext() {
return logContext;
}
});
}
EmbeddedLogContext.clearLogContext();
logContextSelectorRestored = true;
}
}
Aggregations