use of org.apache.logging.log4j.perf.util.NoOpJULHandler in project logging-log4j2 by apache.
the class MemoryHandlerJULLocationBenchmark method up.
@Setup(Level.Trial)
public void up() {
memoryHandler = new MemoryHandler(new NoOpJULHandler(), 262144, java.util.logging.Level.SEVERE);
logger = Logger.getLogger(getClass().getName());
logger.setUseParentHandlers(false);
logger.addHandler(memoryHandler);
logger.setLevel(java.util.logging.Level.ALL);
}
use of org.apache.logging.log4j.perf.util.NoOpJULHandler in project logging-log4j2 by apache.
the class MemoryHandlerJULBenchmark method up.
@Setup(Level.Trial)
public void up() {
memoryHandler = new MemoryHandler(new NoOpJULHandler(), 262144, java.util.logging.Level.SEVERE);
logger = java.util.logging.Logger.getLogger(getClass().getName());
logger.setUseParentHandlers(false);
logger.addHandler(memoryHandler);
logger.setLevel(java.util.logging.Level.ALL);
}
Aggregations