Search in sources :

Example 1 with LifeCycle

use of org.apache.logging.log4j.core.LifeCycle in project logging-log4j2 by apache.

the class AsyncAppenderLog4j2LocationBenchmark 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)

Example 2 with LifeCycle

use of org.apache.logging.log4j.core.LifeCycle in project logging-log4j2 by apache.

the class FormatterLoggerBenchmark 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)

Example 3 with LifeCycle

use of org.apache.logging.log4j.core.LifeCycle in project logging-log4j2 by apache.

the class AsyncLoggersLocationBenchmark 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)

Example 4 with LifeCycle

use of org.apache.logging.log4j.core.LifeCycle in project logging-log4j2 by apache.

the class AsyncAppenderLog4j2Benchmark 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)

Example 5 with LifeCycle

use of org.apache.logging.log4j.core.LifeCycle 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

File (java.io.File)5 LifeCycle (org.apache.logging.log4j.core.LifeCycle)5 TearDown (org.openjdk.jmh.annotations.TearDown)5