Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.0-beta8
-
None
-
None
-
None
Description
Some components behaviour cannot be configured in the configuration file but only with System properties. There is a strong preference to ensure all behaviour can be configured in the configuration file.
Properties that can be used to configure AsyncLoggers when all loggers are Async:
- Log4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
- AsyncLogger.ExceptionHandler
- AsyncLogger.RingBufferSize
- AsyncLogger.WaitStrategy
- log4j.Clock - currently only used for timestamping RingBufferLogEvents.
Question: Should all LogEvents use this clock?
The following system properties can be used to configure mixed Async Loggers:
- AsyncLoggerConfig.ExceptionHandler
- AsyncLoggerConfig.RingBufferSize
- AsyncLoggerConfig.WaitStrategy
For JMX there is only the one "disable" property, in the mailing list it was suggested to make this into an element rather than an attribute to future-proof it.
Attachments
Issue Links
- relates to
-
LOG4J2-329 StatusLogger creates many objects with no way to limit them
- Resolved
-
LOG4J2-396 Disable JMX by default
- Closed