2.0-beta2 (2012-10-07)
Changes
Added
-
Add getFormats to MultiformatMessage and allow StructuredDataMessage to format as XML. (for by Ralph Goers)
-
Add support for ANSI colors by adding the highlight and style pattern converters. Fix pattern parsing to allow nested patterns. (for by Ralph Goers)
-
Allow the status logging to be directed to stderr or to a file. (for by Ralph Goers)
-
Add interval and modulate options to TimeBasedTriggeringPolicy to allow more fine-grained control of when file rolling should occur. (for LOG4J2-35 by Ralph Goers)
-
Add support for filtering packages from stack traces. (for LOG4J2-58 by Ralph Goers)
-
If system property "disableThreadContextMap" is set puts to the ThreadContext will be ignored. If system property "disableThreadContext" is set both puts and pushes will be ignored. (for LOG4J2-83 by Ralph Goers)
-
If system property "disableThreadContextStack" is set pushes to the ThreadContext will be ignored. If system property "disableThreadContext" is set both puts and pushes will be ignored. (for LOG4J2-84 by Ralph Goers)
Changed
-
Made ParameterizedMessage, StringFormattedMessage and ThreadDumpMessage immutable. LocalizedMessage is immutable except that it will be updated with the logger name when it is added to the LogEvent. (for by Ralph Goers)
Fixed
-
DefaultConfiguration was not starting the Console Appender. (for by Ralph Goers)
-
If the ThreadContext map is empty the LogEvent will contain a null value to reduce the overhead of creating log events and in the size of the serialized object. (for LOG4J2-83 by Ralph Goers)
-
If the ThreadContext stack is empty the LogEvent will contain a null value to reduce the overhead of creating log events and in the size of the serialized object. Changed the ThreadContext stack to use a custom stack interface instead of java.util.Stack as that class is overly heavy. This change will cause an API incompatibility. (for LOG4J2-84 by Ralph Goers)
-
Many logging methods in AbstractLogger were set to an incorrect logging level. catching was using the THROWING marker and was set to debug instead of error. (for LOG4J2-88 by Ralph Goers)
-
Add documentation on client vs server mode to performance page. (for LOG4J2-90 by Ralph Goers)
-
Log4j 1.2 adapter’s Category class was missing 3 log methods. (for LOG4J2-91 by Ralph Goers)
-
Converted DynamicThresholdFilter to use KeyValuePair. Fixed bugs in the Map-based filters to allow declaration of multiple values for a key to match the documentation. (for LOG4J2-92 by Ralph Goers)
-
Move variable substitution from PatternLayout to appropriate converters to improve performance. (for by Ralph Goers)