Search in sources :

Example 1 with DemoAppender

use of org.apache.logging.log4j.perf.util.DemoAppender in project logging-log4j2 by apache.

the class GelfLayoutBenchmark method setUp.

@Setup
public void setUp() {
    System.setProperty("log4j2.enable.direct.encoders", "true");
    appender = new DemoAppender(GelfLayout.newBuilder().setConfiguration(new NullConfiguration()).setHost("host").setAdditionalFields(ADDITIONAL_FIELDS).setCompressionType(GelfLayout.CompressionType.OFF).setCompressionThreshold(0).setIncludeStacktrace(true).setIncludeThreadContext(true).build());
    j = 0;
}
Also used : DemoAppender(org.apache.logging.log4j.perf.util.DemoAppender) NullConfiguration(org.apache.logging.log4j.core.config.NullConfiguration)

Aggregations

NullConfiguration (org.apache.logging.log4j.core.config.NullConfiguration)1 DemoAppender (org.apache.logging.log4j.perf.util.DemoAppender)1