logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SMITH, CURTIS" <cs0...@att.com>
Subject Confused: want low latency: do I need BOTH async logger AND async appender??
Date Tue, 23 Jul 2013 15:39:31 GMT

This URL describes that v2 has both async logger and async appender.   What is the suggested
config for an embedded situation where I want low latency, nothing fancy?

I've had do this in code since we don't own the cmd line:  OSGi and system vendor owns the
box and java command line.

System.setProperty("AsyncLoggerContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
System.setProperty("AsyncLogger.RingBufferSize", "128");        // min size permissable to
keep memory low
System.setProperty("AsyncLogger.WaitStrategy", "Block");        // less CPU, better for embedded
System.setProperty("log4j2.disable.jmx", "true");               // saves on a jmx jar and
we don't use JMX anyway

Tnx curt

Curt Smith
AT&T Digital Life
DLC Software Development
(cell) 678-365-6508

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message