ch.qos.logback.core.spi.LifeCycle Java Examples
The following examples show how to use
ch.qos.logback.core.spi.LifeCycle.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: KonkerStatusListenerConfigHelper.java From konker-platform with Apache License 2.0 | 5 votes |
private static void initAndAddListener(KonkerLoggerContext loggerContext, StatusListener listener) { if(listener != null) { if(listener instanceof ContextAware) { ((ContextAware)listener).setContext(loggerContext); } if(listener instanceof LifeCycle) { ((LifeCycle)listener).start(); } loggerContext.getStatusManager().add(listener); } }
Example #2
Source File: SpacedLogbackSystem.java From spring-cloud-formula with Apache License 2.0 | 4 votes |
public void start(LifeCycle lifeCycle) { if (lifeCycle instanceof ContextAware) { ((ContextAware) lifeCycle).setContext(context); } lifeCycle.start(); }
Example #3
Source File: LogbackConfigurator.java From super-cloudops with Apache License 2.0 | 4 votes |
public void start(LifeCycle lifeCycle) { if (lifeCycle instanceof ContextAware) { ((ContextAware) lifeCycle).setContext(this.context); } lifeCycle.start(); }
Example #4
Source File: AsyncAppenderLogbackLocationBenchmark.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@TearDown(Level.Trial) public void down() { ((LifeCycle) LoggerFactory.getILoggerFactory()).stop(); new File("perftest.log").delete(); }
Example #5
Source File: AsyncAppenderLogbackBenchmark.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@TearDown(Level.Trial) public void down() { ((LifeCycle) LoggerFactory.getILoggerFactory()).stop(); new File("perftest.log").delete(); }
Example #6
Source File: RunLogback.java From logging-log4j2 with Apache License 2.0 | 4 votes |
@Override public void shutdown() { ((LifeCycle) LoggerFactory.getILoggerFactory()).stop(); }