Search in sources :

Example 1 with LifeCycle

use of ch.qos.logback.core.spi.LifeCycle in project logging-log4j2 by apache.

the class AsyncAppenderLogbackLocationBenchmark method down.

@TearDown(Level.Trial)
public void down() {
    ((LifeCycle) LoggerFactory.getILoggerFactory()).stop();
    new File("perftest.log").delete();
}
Also used : LifeCycle(ch.qos.logback.core.spi.LifeCycle) File(java.io.File) TearDown(org.openjdk.jmh.annotations.TearDown)

Example 2 with LifeCycle

use of ch.qos.logback.core.spi.LifeCycle in project logging-log4j2 by apache.

the class AsyncAppenderLogbackBenchmark method down.

@TearDown(Level.Trial)
public void down() {
    ((LifeCycle) LoggerFactory.getILoggerFactory()).stop();
    new File("perftest.log").delete();
}
Also used : LifeCycle(ch.qos.logback.core.spi.LifeCycle) File(java.io.File) TearDown(org.openjdk.jmh.annotations.TearDown)

Aggregations

LifeCycle (ch.qos.logback.core.spi.LifeCycle)2 File (java.io.File)2 TearDown (org.openjdk.jmh.annotations.TearDown)2