2.0-beta3

Release date

2012-11-11

Added

  • Added PropertiesRewritePolicy and ability to define properties on a Logger. (LOG4J2-28)

  • Added ability to configure from an InputSource. (LOG4J2-55)

Changed

  • Created combined jar to combine API and Core contents for users who only want the Log4j implementation.

  • Add ability to customize the names of the Levels in the LevelPatternConverter. (LOG4J2-105)

  • Added font and fontSize parameters to HTMLLayout. Replace newlines in message with br tag. (LOG4J2-29)

  • Add ThreadContext.push(String format, Object…​ args) (LOG4J2-85)

  • Build pdf of user’s guide. (LOG4J2-87)

Fixed

  • Avoid NPE when duplicate LoggerContextFactorys are present. Allow factories to specify a weight to allow real implementations to outrank test implementations. Provide a simple default LoggerContextFactory.

  • A NullPointerException would occur if no format value was passed to the SyslogAppender. (LOG4J2-101)

  • The Facility value was being improperly calculated. (LOG4J2-102)

  • The LogEvent was wrapping a ThrowableProxy with another ThrowableProxy when deserializing. (LOG4J2-103)

  • Convert LogManager binding to use "regular" java properties instead of XML properties to work around a bug in Oracle’s xmlparserv2 jar. (LOG4J2-104)

  • PatternParser was not properly handling adjacent nested options (LOG4J2-107)

  • Fix NullPointerException in ClassLoaderContextSelector when no class is returned from the SecurityManager. (LOG4J2-108)

  • Interpolator was not stripping Lookup key separator when trying to locate the default value for a variable. (LOG4J2-94)

  • Add support for loading plugins inside the OSGi bundle. (LOG4J2-95)

  • Added several missing classes and methods for Log4j 1.x compatibility. (LOG4J2-97)

  • MapRewritePolicy had an extra call to putAll that caused updates to behave like adds. (LOG4J2-99)

  • Log4j 1.2 Category.forcedLog was wrapping the message with an ObjectMessage even if the parameter was an ObjectMessage.