Search in sources :

Example 11 with TearDown

use of org.openjdk.jmh.annotations.TearDown in project logging-log4j2 by apache.

the class AsyncLoggersBenchmark method down.

@TearDown(Level.Trial)
public void down() {
    ((LifeCycle) LogManager.getContext(false)).stop();
    new File("perftest.log").delete();
}
Also used : LifeCycle(org.apache.logging.log4j.core.LifeCycle) File(java.io.File) TearDown(org.openjdk.jmh.annotations.TearDown)

Aggregations

TearDown (org.openjdk.jmh.annotations.TearDown)11 File (java.io.File)9 LifeCycle (org.apache.logging.log4j.core.LifeCycle)5 LifeCycle (ch.qos.logback.core.spi.LifeCycle)2 SQLException (java.sql.SQLException)2 Statement (java.sql.Statement)2 LoggerContext (org.apache.logging.log4j.core.LoggerContext)2