Apache logging services logo Apache log4j logo

Changes

Release History

VersionDateDescription
2.0-rc12014-MM-DDBug fixes and enhancements
2.0-beta92013-09-14Bug fixes and enhancements
2.0-beta82013-07-10Bug fixes and enhancements
2.0-beta72013-06-01Bug fixes and enhancements
2.0-beta62013-05-05Bug fixes and enhancements
2.0-beta52013-04-20Bug fixes and enhancements
2.0-beta42013-01-28Bug fixes and enhancements
2.0-beta32012-11-11Bug fixes and enhancements
2.0-beta22012-10-07Bug fixes and enhancements
2.0-beta12012-09-18Bug fixes and enhancements
2.0-alpha22012-08-24Bug fixes and minor enhancements
2.0-alpha12012-07-29Rewrite of Log4j

Release 2.0-rc1 - 2014-MM-DD

TypeChangesBy
Removed the DataSourceConnectionSource and the <DriverManager> plugin for the JDBC Appender. It is not safe to use. Please use the DataSource or factory connection sources backed by a connection pool.nickwilliams
updateRenamed the org.apache.logging.log4j.core.appender.db.nosql.mongo package to org.apache.logging.log4j.core.appender.db.nosql.mongodb.nickwilliams
updateRenamed the org.apache.logging.log4j.core.appender.db.nosql.couch package to org.apache.logging.log4j.core.appender.db.nosql.couchdb.grobmeier
fix(JMX - ObjectNames changed!) Unloading one web application unloads JMX MBeans for all web applications. Fixes LOG4J2-500.rpopma
updateSpace Level numbers by 100 instead of 1. Fixes LOG4J2-507.ggregory
fixFixed bugs where rolled log files were overwritten by RollingFile appender with composite time and size based policies. Fixes LOG4J2-531. Thanks to Geoff Ballinger.rpopma
fixChanged the MongoDBConnection to add a MongoDB encoding hook instead of a decoding hook. Fixes LOG4J2-475. Thanks to Matt Sicker.nickwilliams
fixFixed the JPAAppender's overuse of transactions by connecting (borrowing from pool) on new write internal or on flush. Fixes LOG4J2-489.nickwilliams
fixFixed failure of JDBC and JPA appender to properly release database connections by connecting (borrowing from pool) on new write internal or on flush. Fixes LOG4J2-457.nickwilliams
fixFixed problem with JDBC and JPA appender connectivity in WebSphere by connecting (borrowing from pool) on new write internal or on flush. Fixes LOG4J2-442.nickwilliams
fixEnsured the JDBCAppender commits transactions after a single write or a flush of multiple writes. Fixes LOG4J2-438.nickwilliams
fixFixed inability to recover from lost database connection in database appenders by connecting (borrowing from pool) on new write internal or on flush. Fixes LOG4J2-407.nickwilliams
add(JMX) JMX Client GUI should dynamically update when LoggerContext MBeans are registered/unregistered in MBean server. Fixes LOG4J2-530.rpopma
fixStop AsyncLoggerConfig Disruptor thread(s), then AsyncAppender thread(s) first before stopping other appenders. Fixes LOG4J2-511. Thanks to James Pretorius.rpopma
fixStop AsyncLoggerConfig Disruptor thread(s), then AsyncAppender thread(s) first before stopping other appenders. Fixes LOG4J2-392. Thanks to ilynaf, Andre Bogus.rpopma
fix(OSGi) logging.log4j-1.2-api doesn't export the log4j API 1.2. Dependent bundles can not be resolved. Fixes LOG4J2-345. Thanks to Roland Weiglhofer, Matt Sicker.rpopma
fixLocalizedMessage serialization is broken. Fixes LOG4J2-523.ggregory
fixFixed issues with time-based file rollover (monthly, weekly, hourly and every minute). Fixes LOG4J2-385. Thanks to Ace Funk, Porfirio Partida.rpopma
fixAdded a ServletContext attribute that, when set to "true", disables Log4j's auto-initialization in Servlet 3.0+ web applications. Fixes LOG4J2-452.nickwilliams
fixExposed Log4j web support interface and methods and the LoggerContext through ServletContext attributes so that threads not affected by filters (such as asynchronous threads) can utilize the LoggerContext. Also updated the Log4j filter so that it supports async. Fixes LOG4J2-512. Thanks to Chandra Sekhar Kakarla, Matt Sicker.nickwilliams
fixCreated a utility to properly escape backslashes before creating URIs, and changed URI creation to use the utility instead of instantiating URI directly. Fixes LOG4J2-409. Thanks to Frank Steinmann, Thomas Neidhart.nickwilliams
fixChanged the Servlet 3.0 auto-initializer to add the filter by class to get around a WebLogic bug. Fixes LOG4J2-344. Thanks to Keir Lawson, Tomasz Wladzinski.nickwilliams
fixChanged the Servlet 3.0 auto-initializer so that it does nothing in a Servlet 2.5 or older application. This ensures behavioral consistency across containers. This includes additional fixes to abort initialization if a duplicate filter already exists and to check the actual Servlet EFFECTIVE version. Fixes LOG4J2-359. Thanks to Abhinav Shah.nickwilliams
fixSwitch in log4j-1.2-api Category.getEffectiveLevel has no cases for FATAL, OFF. Fixes LOG4J2-517.rpopma
updateAdd support for custom logging levels. Fixes LOG4J2-41. Thanks to Nick Williams.rgoers
fix(JMX) Unregister all log4j JMX MBeans when the LoggerContext is stopped to allow web application classes to be GC-ed on undeploy. Fixes LOG4J2-406. Thanks to Kerrigan Joseph.rpopma
fixConfiguration was being processed twice at startup. Fixes LOG4J2-405.rgoers
addThreadContext now uses plain ThreadLocal by default, unless system property isThreadContextMapInheritable has value "true". Fixes LOG4J2-479. Thanks to MK.rpopma
fixConfigure properties and setup Interpolator before processing rest of configuration. Fixes LOG4J2-398.rgoers
addAdd Stream interface to Loggers. Fixes LOG4J2-481. Thanks to Matt Sicker.rgoers
updateUpdate EasyMock to version 3.2. Fixes LOG4J2-490. Thanks to Matt Sicker.rgoers
fixhostName property was not being set until after the first configuration element. Fixes LOG4J2-470.rgoers
fixSupport arrays as sub-elements of a JSON configuration. Fixes LOG4J2-464.rgoers
fix(JMX) Fixed MalformedObjectNameException if context name contains '=' or newline characters. Fixes LOG4J2-492. Thanks to Shaddy Baddah, Herlani Junior.rpopma
fix(OSGi) Fix NPE during shutdown. Fixes LOG4J2-377. Thanks to Roland Weiglhofer, Matt Sicker.rpopma
fixFixed documentation for MyApp example application in the Automatic Configuration section Fixes LOG4J2-463. Thanks to Michael Diamond, Matt Sicker.rpopma
fixFixed error in documentation code example in manual/eventlogging.html Fixes LOG4J2-408. Thanks to Dongqing Hu, Matt Sicker.rpopma
fixFixed typo in documentation: system property should be log4j2.loggerContextFactory Fixes LOG4J2-451. Thanks to Vinay Pothnis, Matt Sicker.rpopma
fixFixed issue where log4j2 LoggerContext did not show up in JMX GUI or JConsole. Fixes LOG4J2-443. Thanks to Colin Froggatt, Tudor Har.rpopma
fixFixed issue where toString methods that perform logging could deadlock AsyncAppender. Fixes LOG4J2-485.rpopma
fixResolverUtil cannot find packages in file URLs which include the '+' character. Fixes LOG4J2-445. Thanks to Anthony Baldocchi.rpopma
fixUse the formatted Message in RFC5424Layout for non-StructuredDataMessages. Fixes LOG4J2-430. Thanks to David Gstir.rgoers
fixSet external context when constructing the LoggerContext. Fixes LOG4J2-459.rgoers
fixCannot load log4j2 config file if path contains plus '+' characters. Fixes LOG4J2-466. Thanks to Jan Tepke.rpopma
fixFix LogEvent to never return null Level, fixes LevelPatternConverter.format may throw NPE. Fixes LOG4J2-462. Thanks to Daisuke Baba.rpopma
fixFix LogEvent to never return null Level, fixes ThresholdFilter throws NPE. Fixes LOG4J2-465. Thanks to Daisuke Baba.rpopma
fixFixed issue where toString methods that perform logging could deadlock AsyncLogger. Fixes LOG4J2-471. Thanks to Anthony Baldocchi.rpopma
addDocumentation fix: The attribute of Route to refer to an appender is "ref" not "AppenderRef". Fixes LOG4J2-482. Thanks to Hongdi Ren.rpopma
addAdded option to toggle Thread name caching in AsyncLogger. Fixes LOG4J2-467. Thanks to Anthony Baldocchi.rpopma
fixThe message and ndc fields are not JavaScript escaped in JSONLayout. Fixes LOG4J2-478. Thanks to Michael Friedmann..ggregory
fixRingBufferLogEvent should return Message timestamp for TimestampMessage messages. Fixes LOG4J2-455. Thanks to Robin Zhang Tao.rpopma
fixNPE in ClassLoaderContextSelector. Fixes LOG4J2-477. Thanks to Tal Liron.rpopma
fixTimeBasedTriggeringPolicy should use event time millis. Fixes LOG4J2-454. Thanks to Robin Zhang Tao.rpopma
fixBaseConfiguration class does not properly implement Configuration interface. Fixes LOG4J2-472. Thanks to Tal Liron.rpopma
fixXMLLayout does not include marker name. Fixes LOG4J2-447. Thanks to Jeff Hudren, Mark Paluch, Scott Deboy.ggregory
updateUpdate Flume Appender to use Flume 1.4.0. Fixes LOG4J2-453.rgoers
addAdded MBeans for instrumenting AsyncAppenders and AsyncLogger RingBuffers, exposing queue size, remaining capacity and other attributes. Fixes LOG4J2-423.rpopma
fixResolved memory leak by releasing reference to ThreadLocal when AsyncLogger is stopped. Fixes LOG4J2-323.rpopma
fixResolved memory leak by populating AsyncLoggerConfigHelper ring buffer via EventTranslatorTwoArg, eliminating the need for a ThreadLocal. Fixes LOG4J2-425.rpopma
addCreate a lookup for resource bundle substitution. Fixes LOG4J2-420.ggregory
fixFix Event Level / LoggerConfig Level table at the architecture documentation page. Fixes LOG4J2-417.ggregory
addFormat log event time as UNIX time (seconds or milliseconds). Fixes LOG4J2-415.ggregory
fix@EnterpriseNumber" was missing in the ID of structured data when RFC5424Layout is used Fixes LOG4J2-404. Thanks to Kamal Bahadur.rgoers
fixFixed issue that prevented Log4J from working in Google App Engine. Fixes LOG4J2-379.rpopma
addConfigure FileAppender buffer size. Fixes LOG4J2-401.ggregory
addConfigure RandomAccessFileAppender buffer size. Fixes LOG4J2-402.ggregory
updateRename package org.apache.logging.log4j.core.appender.rolling.helper to org.apache.logging.log4j.core.appender.rolling.action. Fixes LOG4J2-528.ggregory
updateResource leak in Flume appender when it cannot create a BerkeleyDB db. Fixes LOG4J2-532.ggregory

Release 2.0-beta9 - 2013-09-14

TypeChangesBy
updateRenamed FastFileAppender and FastRollingFileAppender to RandomAccessFileAppender and RollingRandomAccessFileAppender. Configurations using the Fast(Rolling)File element no longer work and should be modified to use the (Rolling)RandomAccessFile element. Fixes LOG4J2-317.ggregory
updateChanged the "suppressExceptions" configuration attribute for all Appenders to "ignoreExceptions" to avoid confusion with Java 7 suppressed exceptions. Also renamed the Appender#isExceptionSuppressed() method to Appender#ignoreExceptions() to avoid the same confusion. All Appenders by default internally log and then ignore exceptions encountered while logging. Setting "ignoreExceptions" to "false" on an Appender causes it to allow exceptions to propagate to the caller. You must set "ignoreExceptions" to "false" for Appenders you are wrapping in the Failover Appender.nickwilliams
updateChanged the (relatively new) PatternLayout configuration attribute "suppressExceptions" to "alwaysWriteExceptions" to more correctly indicate what it does. As such, the meaning of this attribute has reversed (previous "true"s should become "false"s, and vice versa). Since this was an undocumented attribute up until now, it's unlikely this change will affect any users.nickwilliams
fixFix table of contents generation in pdf. Fixes LOG4J2-226.rgoers
fixAllow classpath scheme when specifying configuration file location as a system property. Fixes LOG4J2-395. Thanks to Abhinav Shah.rgoers
fixInitialize PluginManager once during configuration. Move advertisement setup into BaseConfiguration. Fixes LOG4J2-393.rgoers
fixFlumePersistentManager now handles LockConflictExceptions in Berkeley Db. Fixes LOG4J2-391. Thanks to Kamal Bahadur.rgoers
addAllow the default file rollover strategy to define the compression level. Fixes LOG4J2-399.ggregory
addAdd TLSAppender. Also added missing license headers to several files. Fixes LOG4J2-338. Thanks to Tibor Benke.rgoers
fixUse rollover date when substituting ${date} in the filePattern. Fixes LOG4J2-380.rgoers
addAdded FAQ page to the site. Fixes LOG4J2-253.rpopma
addAdd a diagram to the site (FAQ page) that explains when to use which jar. Fixes LOG4J2-362.rpopma
fixCentralized reflective use of Reflection#getCallerClass and properly handled its instability in various versions of Java. Fixes LOG4J2-322.nickwilliams
fixReset the Configuration if the ClassLoaderContextSelector creates a LoggerContext without a configuration location and then is later provided one. Fixes LOG4J2-293.rgoers
fixChanged the ConfigurationFactory to recognize and properly use the classpath: URI scheme in addition to the classloader: URI scheme. Fixes LOG4J2-293. Thanks to Abhinav Shah.nickwilliams
fixChanged the Servlet 3.0 auto-initializer so that it does nothing in a Servlet 2.5 or older application. This ensures behavioral consistency across containers. Fixes LOG4J2-359. Thanks to Abhinav Shah.nickwilliams
addAdd more options to PatternLayout to display more detailed information about a Throwable. Fixes LOG4J2-374. Thanks to Tibor Benke.ggregory
add[Pattern Layout] Customize level names by length. Fixes LOG4J2-383.ggregory
add[Pattern Layout] Customize level names to lower-case. Fixes LOG4J2-384.ggregory
updateAdd support for multiple SD-ELEMENTs in a RFC 5424 syslog message. Fixes LOG4J2-355. Thanks to Tibor Benke.ggregory
updateCleaned up tests and cleared up documentation for the JPA appender following the resolution of EclipseLink issue #412454.nickwilliams
fixFixed issue where SMTPAppender did not send mails with error or fatal level without prior info event. Fixes LOG4J2-310. Thanks to Olivier Lemasle.rpopma
fixAdd PatternLayout constructor to Log4j 1.2 bridge for Velocity. Fixes LOG4J2-368.rgoers
fixMatch artifact ids with Maven module names. Fixes LOG4J2-333. Thanks to Hervé Boutemy.ggregory
addAdd WebLookup to retrieve information from the ServletContext. Fixes LOG4J2-364. Thanks to David Nault.rgoers
fixJMS appenders send two messages for one append. Fixes LOG4J2-367. Thanks to David Parry.ggregory
fixDouble stack trace logging when using %throwable in %style and %highlight. Fixes LOG4J2-319.ggregory
addAllow Plugins to have aliases. Fixes LOG4J2-360.rgoers
fixNoSQLAppender using MongoDB provider ignores username and password attributes Fixes LOG4J2-358.nickwilliams
addCreate a JSON Layout. Fixes LOG4J2-356.ggregory
fixRemoved unnecessary generics from Appender interface and implementing classes. Fixes LOG4J2-343. Thanks to Henning Schmiedehausen.rpopma
fix[OSGi] wrong Fragment-Host in manifest files. Fixes LOG4J2-351. Thanks to Roland Weiglhofer.rpopma
fixAsyncLogger errors after multiple calls to LoggerContext.reconfigure(). Fixes LOG4J2-336. Thanks to Andre Bogus.rpopma
fixGive the AsyncAppender thread a more descriptive name for easier debugging/profiling. Fixes LOG4J2-347. Thanks to David Phillips.rpopma
fixModified documentation to refer to SLF4J Binding instead of SLF4J Bridge. Fixes LOG4J2-332. Thanks to Hervé Boutemy.rgoers
fixIgnore xml:base attributes. Fixes LOG4J2-342.rgoers
fixInsure jars and distributions only have a single License and Notice file. Fixes LOG4J2-309.rgoers
addEnable XInclude for XML configurations. Fixes LOG4J2-341.ggregory
fixJPAAppender stops logging because META-INF/log4j-provider.properties is left open. Fixes LOG4J2-320.ggregory
fixFlumePersistentManager's writer thread had high CPU usage. Fixes LOG4J2-335.rgoers
fixRemoved erroneous check for affected MongoDB records, which always returns zero on inserts. Fixes LOG4J2-331.nickwilliams
fixAdded a BSON Transformer so that MongoDB can persist Log4j events. Fixes LOG4J2-330.nickwilliams
fixStatusLogger now only creates StatusData objects if they are the appropriate logging level. Fixes LOG4J2-329.rgoers
fixFlumePersistentManager was calling Berkeley DB's count method too frequently. Fixes LOG4J2-328.rgoers
fixAdditional fix to make AsyncAppender threads daemon threads and improve their thread name. Fixes LOG4J2-280.rpopma
fixThe slf4j-ext jar is now an optional dependency of the SLF4J bridge. Fixes LOG4J2-165.rgoers
updateAllow shutdown hook to be disabled in the configuration. Fixes LOG4J2-318.rgoers
fixRoutingAppender's default Route can now be an appender reference. Fixes LOG4J2-166.rgoers
addAdd JNDILookup plugin. Fixes LOG4J2-313. Thanks to Woonsan Ko.rgoers
fixAdd getThrowable method to ThrowableProxy. Fixes LOG4J2-299.rgoers
fixThrowableProxy no longer extends Throwable. Fixes LOG4J2-216.rgoers
fixSynchronized flush() and close() methods in the XxxFileManager and OutputStreamManager classes. Fixes LOG4J2-311.rpopma
updateXML layout improvements (compact vs. pretty, namespace, namespace prefix, root element). Fixes LOG4J2-312.ggregory
updateUpdate Java Mail dependency to 1.5.0 from 1.4.7. Fixes LOG4J2-388.ggregory
updateUpdate JDBC tests to use H2 database 1.3.173 from 1.3.172. Fixes LOG4J2-325.ggregory
updateUpdate commons-logging to 1.1.3 from 1.1.1. Fixes LOG4J2-366.ggregory
updateUpdate HSQLDB dependency to 2.3.0 from 2.2.9. Fixes LOG4J2-390.ggregory
updateClarified which library versions were used in Async Loggers performance test. Fixes LOG4J2-308.rpopma
updateUpdated Async Loggers' LMAX Disruptor library from 3.0.1 to 3.2.0. Fixes LOG4J2-307.rpopma
updateUpdate JSON Jackson library to 2.2.2 from 2.2.1. Fixes LOG4J2-306.ggregory
updateUpdate Jackson dependency to 1.9.13 from 1.9.11. Fixes LOG4J2-387.ggregory
addEase porting from 1.x Logger.getRootLogger(): add LogManager.getRootLogger(). Fixes LOG4J2-305.ggregory
fixFixed Async Loggers memory leak. Fixes LOG4J2-304.rpopma
fixFixed JDBC, JPA, and NoSQL appenders so that the failover appender properly fails over on error. Fixes LOG4J2-291.nickwilliams
updateImproved site by adding quick jump-off page and menu for Javadoc links for all components.nickwilliams
fixLogger.info(Message) Javadoc is incorrect. Fixes LOG4J2-397. Thanks to Yonatan Graber.ggregory

Release 2.0-beta8 - 2013-07-10

TypeChangesBy
updateImproved logging initialization in Servlet containers, especially Servlet 3.0 and newer where Log4j now initializes and deinitializes automatically with no deployment descriptor configuration. Fixes LOG4J2-270.nickwilliams
fixAdded toString methods to ThreadContextStack/Map implementation classes. Fixes LOG4J2-302.rpopma
updateAdd printf methods to Logger API. Fixes LOG4J2-301.rgoers
fixWriterThread was ending when no agents are available which caused an OutOfMemoryError. Fixes LOG4J2-300.rgoers
updateAllow the default status level to be specified as a system property. Fixes LOG4J2-282.rgoers
fixFilter calls from Avro or Flume to be ignored by the FlumeAppender. Fixes LOG4J2-278.rgoers
fixFlumePersistentManager now calls Berkeley DB from threads to avoid encountering interrupts in the application. Fixes LOG4J2-279.rgoers
fixWasted work in FlumePersistentManager.createManager. Fixes LOG4J2-296.ggregory
fixWasted work in TestConfigurator.testEnvironment. Fixes LOG4J2-297.ggregory
fixWasted work in StyleConverterTest.setupClass. Fixes LOG4J2-298.ggregory
fixAsyncLogger threads are now daemon threads and won't prevent the JVM from shutting down anymore. Fixes LOG4J2-280.rpopma
fixFast(Rolling)FileAppender now correctly handles messages exceeding the buffer size. Fixes LOG4J2-295.rpopma
fixFastRollingFileAppender with TimeBasedTriggeringPolicy now works correctly if append=false. Fixes LOG4J2-271.rpopma
fixFastRollingFileAppender with TimeBasedTriggeringPolicy now works correctly if append=false. Fixes LOG4J2-267.rpopma
fixFast(Rolling)FileAppender now correctly appends to (does not overwrite) existing file. Fixes LOG4J2-292.rpopma
updateLogManager.getLogger can now be called without a logger name or with a null logger name. Fixes LOG4J2-294.rgoers
fixUpgrade javadoc plugin to 2.9.1 to fix javadoc security issue. Fixes LOG4J2-289.rgoers
updateUpdate JUnit to 4.11 from 4.7. Fixes LOG4J2-288.gregory
updateUpdate test H2 JDBC driver to 1.172 from 1.171. Fixes LOG4J2-286.gregory
updateUpdate Jansi jar to 1.11 from 1.9. Fixes LOG4J2-285.gregory
updateUpdate Log4j 1 dependency to 1.2.17 from 1.2.16. Fixes LOG4J2-284.gregory
updateUpdate NoSQL dependencies: lightcouch 0.0.6 from 0.0.5, mongodb 2.11.2 from 2.11.1. Fixes LOG4J2-386.gregory
updateRemove dependency on Apache ORO jar. Fixes LOG4J2-283.gregory
updateWasted work in RollingAppenderSizeTest.testAppender() and others. Fixes LOG4J2-277.gregory
fixFix NullPointerException (regression due to fix for LOG4J2-228) Fixes LOG4J2-139.rgoers
updateInclude arbitrary message fields in RFC-5424 structured data. Fixes LOG4J2-168. Thanks to Scott Severtson.rgoers
fixFlumeAvroManager fails to notify client of failing event if Flume RPCClient cannot be created. Fixes LOG4J2-275.rgoers
updateWasted work in UUIDUtil initialization. Fixes LOG4J2-274.ggregory
updateWasted work in XMLLayout.toSerializable(). Fixes LOG4J2-273.ggregory

Release 2.0-beta7 - 2013-06-01

TypeChangesBy
updateAllow context parameters in Log4jContextListener to include properties. Fixes LOG4J2-249.rgoers
fixDo not allow a charset on RFC5424Layout - use UTF-8. Fixes LOG4J2-263.rgoers
fixStringFormattedMessage and MessageFormatMessage now will accept a Throwable as their last argument and pass it on. Fixes LOG4J2-242.rgoers
updateAllow custom LogEventFactories. Fixes LOG4J2-243.rgoers
updateAdd support for interceptors in the embedded Flume Appender. Fixes LOG4J2-262. Thanks to Edward Sargisson.rgoers
fixUse transaction when batch size is 1. Fixes LOG4J2-269.rgoers
fixAdd guid to FlumeEvent headers for non-Map Messages. Fixes LOG4J2-268.rgoers
fixData buffer is reset in finally clause. Fixes LOG4J2-246.rgoers
fixUDP now sends one event per packet. Fixes LOG4J2-228.rgoers
updateMethod name changes in interface org.apache.logging.log4j.spi.ThreadContextMap: getContext() to getCopy(), get() to getImmutableMapOrNull().rpopma
updateImprove ThreadContext performance with copy-on-write map and stack. Fixes LOG4J2-154.rpopma
fixAdd missing "not" to error message. Fixes LOG4J2-261. Thanks to Edward Sargisson.rgoers
addBreak up core into multiple osgi jars. Fixes LOG4J2-10. Thanks to Timothy Ward.rgoers
fixRemove LoggerContext when LoggerContext is stopped. Fixes LOG4J2-223.rgoers
fixXML layout does not specify charset in content type. Fixes LOG4J2-260.ggregory
fixHTML layout does not specify charset in content type. Fixes LOG4J2-259.ggregory
fixHTML layout does not output meta element for charset. Fixes LOG4J2-258.ggregory
fixXML layout ignores charset for the XML processing intruction's encoding attribute. Fixes LOG4J2-257.ggregory
fixMulti-byte character strings are now assumed to be in the platform default encoding, not UTF-8. Fixes LOG4J2-255.rpopma
fixMark OutputStream in OutputStreamManager as volatile. Mark header and footer as final. Fixes LOG4J2-254.rgoers
fixRewrite Appender was ignoring filters on referenced appenders. Fixes LOG4J2-244.rgoers
fixAvoid EmptyStack exception if getCallerClass and SecurityManager are not available. Fixes LOG4J2-245.rgoers
addNew JDBC, JPA, and NoSQL database Appenders. Fixes LOG4J2-229. Thanks to Nick Williams.ggregory
fixSocketServer.isActive should be volatile because it is accessed from different threads. Fixes LOG4J2-247.ggregory
addProvide configuration information (location, content type, content if possible) via a registered Advertiser. Fixes LOG4J2-251.sdeboy

Release 2.0-beta6 - 2013-05-05

TypeChangesBy
fixLogger.getParent() was not returning the correct Logger. Fixes LOG4J2-231.rgoers
fixRenamed Plugin annotation attribute from "type" to "category". Fixes LOG4J2-201.rgoers
updateMoved JMX Client GUI classes into separate jmx-gui submodule. Fixes LOG4J2-237.rpopma
fixFix: install default root logger if not configured (this is unchanged), but make sure to include configured named loggers. Clarified documentation. Fixes LOG4J2-219. Thanks to Peter DePasquale.rpopma
fixUse OSGi version format in Fragment-Host Fixes LOG4J2-159.rgoers
fixRegexFilter threw a NullPointerException when used as a context-wide filter. Fixes LOG4J2-234.rgoers
fixAdd support for interpolating Environment variables when processing the configuration. Fixes LOG4J2-192.rgoers
fixRemoved dependency on tools jar from core module, made jconsole dependency optional. Fixes LOG4J2-235. Thanks to Sebastian Oerding.rpopma
fixFixed link to log4j-user mailing list. Fixes LOG4J2-233.rpopma
updateImproved error reporting when misconfigured. Fixes LOG4J2-230. Thanks to Wojciech Zaręba.rpopma
fixDisruptor will now shutdown during Tomcat shutdown. Fixes LOG4J2-222. Thanks to Steven Yang.rgoers
updateRenamed AsynchAppender to AsyncAppender. Plugin name became Async (was Asynch).rpopma
updateRemoved CheckStyle false positives for NewlineAtEndOfFile and whitespace following '*' at end of line in javadoc.rpopma
updateMoved Clock interface to package org.apache.logging.log4j.core.helpers.rpopma
updateDocumentation updates to clarify use and impact of location in pattern layouts. Fixes LOG4J2-225.rpopma
fixThe FlumeAppender failed to start if the Flume RPCClient could not connect to any Flume agents. Fixes LOG4J2-224.rgoers
fixFix LoggerContext start and stop to eliminate IllegalStateException and NoClassDefFound errors. Fixes LOG4J2-223.rgoers
fixRemove hundreds of compiler warnings. Fixes LOG4J2-221. Thanks to Nick Williams.rgoers
fixVarious small documentation fixes. Fixes LOG4J2-215.rpopma
fixEnsure PluginManager streams are always closed. Fixes LOG4J2-217. Thanks to Fabien Sanglard.rpopma

Release 2.0-beta5 - 2013-04-20

TypeChangesBy
fixFix deadlock in SocketAppender. Added option to not wait for socket reconnect. Fixes LOG4J2-205.rgoers
addAdd JMX support. Fixes LOG4J2-207. Thanks to Remko Popma.rgoers
fixRemoving extra spaces in entry and exit method output. Fixes LOG4J2-211. Thanks to Nick Williams.rgoers
updateAsync documentation update. Fixes LOG4J2-214. Thanks to Remko Popma.rgoers
fixLoggers without a "." had no parent logger. Fixes LOG4J2-212.rgoers
updateMove async subproject into core. Fixes LOG4J2-208. Thanks to Remko Popma.rgoers
fixCall LoggerContext.stop when the application is shutdown. Fixes LOG4J2-212.rgoers
fixMapMessage was not enclosing key value in quotes when generating XML. Fixes LOG4J2-210. Thanks to Arkin Yetis.rgoers
fixFlumeAvroManager now uses Flume RPCClient. Fixes LOG4J2-198.rgoers
fixFlumeAvroManager now uses Flume RPCClient. Fixes LOG4J2-196.rgoers
fixUse the Maven group ID org.apache.logging.log4j for all artifacts. Fixes LOG4J2-207.ggregory
addAdd tag library. Fixes LOG4J2-187. Thanks to Nick Williams.rgoers
fixUnit tests now create files in the target directory. Fixes LOG4J2-195. Thanks to Remko Popma.rgoers
fixRollingFastFileAppender (in log4j-async) did not roll over. Fixes LOG4J2-193. Thanks to Remko Popma.rgoers
fixHighlight subprojects in sub-navigation. Fixes LOG4J2-199. Thanks to Remko Popma.rgoers
fixLoggerContext method renamed to removeFilter from removeFiler. Fixes LOG4J2-200. Thanks to Remko Popma.rgoers
fixThrowableFormatOptionsTest failed on Windows due to CR/LF issue. Fixes LOG4J2-194. Thanks to Remko Popma.rgoers
fixBaseConfiguration addLoggerAppender saved appender using the Logger name. Fixes LOG4J2-190. Thanks to Werner.rgoers
updateMove Throwable pattern converter options processing to ThrowableFormatOptions class. Fixes LOG4J2-160. Thanks to Joanne Polsky.rgoers
updateAllowed Loggers access to the properties in the LoggerConfig. Fixes LOG4J2-157. Thanks to Remko Popma.rgoers
updateAdded ability to include or exclude location information. Fixes LOG4J2-153. Thanks to Remko Popma.rgoers
updateAllow Logger and LoggerContext to be subclassed. Fixes LOG4J2-151. Thanks to Remko Popma.rgoers
addAdd methods is/setEndOfBatch to LogEvent. Fixes LOG4J2-164. Thanks to Remko Popma.rgoers
addAdd support for asynchronous loggers. Fixes LOG4J2-163. Thanks to Remko Popma.rgoers
fixThe blocking parameter did not work properly on AsynchAppender. Fixes LOG4J2-189. Thanks to Werner.rgoers
fixAppenderRefs on AsynchAppender didn't support the level and filter elements. Fixes LOG4J2-188. Thanks to Werner.rgoers
fixAvoid IllegalArgumentException in AsynchAppender. Fixes LOG4J2-176. Thanks to Remko Popma.rgoers
addAdd Logger interface APIs to log at given levels. Fixes LOG4J2-179.ggregory
fixOutputStreamManager now adds the layout header whenever the OutputStream is set. Fixes LOG4J2-181.rgoers
fixFix NullPointerException in DatagramOutputStream when flush is called from multiple threads. Fixes LOG4J2-177. Thanks to Remko Popma.rgoers
addAdded FlumePersistentManager which writes to BerkeleyDB and then writes to Flume asynchronously.rgoers
fixPlugin cache should be reset when addPackages is called. Fixes LOG4J2-175.sdeboy
addExpose file appender configuration details via an advertisement mechanism. Fixes LOG4J2-155.sdeboy
fixAdd Fragment-Host to MANIFEST.MF for log4j-core. Fixes LOG4J2-159. Thanks to Jan Winter.rgoers
fixConfigurator throws a ClassCastException if LogManager returns a SimpleLoggerContext. Fixes LOG4J2-167.rgoers
fixConfigurationFactory was adding factories on every call. Fixes LOG4J2-169.rgoers
fixModify ClassLoaderContextSelector to use the first ClassLoader in the child parent hierarchy that has a Context with a configuration to allow JSPs to use the WebApp's context and configuration. Fixes LOG4J2-161.rgoers
?Add RFC 5424 compliant escaping rules to RFC5424Layout. Fixes LOG4J2-158. Thanks to Scott Severtson.rgoers

Release 2.0-beta4 - 2013-01-28

TypeChangesBy
fixLocalizedMessageTest fails on linux system. Fixes LOG4J2-156. Thanks to Andreas Born.ggregory
fixRollingFileAppender's FileRenameAction was throwing a NullPointerException if no directory was specified on the target file name. Fixes LOG4J2-152. Thanks to Remko Popma.rgoers
fixConvert all System.getProperty calls to use PropertiesUtil to suppress SecurityExceptions. Fixes LOG4J2-150.rgoers
fixThreadContextMapFilter was matching on the key instead of the value of the key. Fixes LOG4J2-147. Thanks to William Burns.rgoers
fixAllow FlumeAvroManager to initialize even if it cannot connect to an agent.rgoers
fixSMTPAppender will only cache filtered events. Fixes LOG4J2-149. Thanks to Scott Severtson.rgoers
fixAdd missing serial version IDs. Fixes LOG4J2-145.ggregory
fixNullPointerException in RFC5424Layout. Fixes LOG4J2-144.ggregory
fixMessagePatternConverter now returns "null" if the log message is null. Fixes LOG4J2-143.rgoers
fixSerialized LogEvents were not reset in the output stream causing them to deserialize incorrectly. Fixes LOG4J2-142.rgoers
fixFix null pointer exception in SocketAppender if no protocol is specified. The protocol will default to TCP for the SocketAppender and UDP for the SyslogAppender. Fixes LOG4J2-139.rgoers
addAdded Log4j 2 to SLF4J adapter.rgoers
fixTypo in documentation of SocketAppender. Fixes LOG4J2-140. Thanks to Joern Huxhorn.ggregory
fixFix hang in Dumbster SMTP test server. Fixes LOG4J2-137.rgoers
updateAllow newlines to be escaped in Syslog and RFC5424 layouts. Allow Throwables to be included in the output from RFC5424Layout. Fixes LOG4J2-136. Thanks to Scott Severtson.rgoers
addAdd SMTPAppender. Fixes LOG4J2-131. Thanks to Scott Severtson.rgoers
fixPatternLayout should format throwables without requiring a converter. Fixes LOG4J2-130.rgoers
addAdded hostName and contextName to property map.rgoers
fixBaseConfiguration does not close the first appender. Fixes LOG4J2-135. Thanks to Ingo Feltes.ggregory
addAdd MessageFormatMessage and FormattedMessage.rgoers
addUse %red, %white, %blue, and so on in the console appender. Fixes LOG4J2-134.ggregory
addAllow custom message creation via a message factory. Fixes LOG4J2-133.ggregory
fixAbstractLogger.catching(Throwable) checks for DEBUG level but logs at ERROR level. Fixes LOG4J2-132.ggregory
fixRoutingAppender was only creating a single appender for the default Route. Fixes LOG4J2-129.rgoers
fixAllow JMS appenders to recover if the queue or topic is unavailable. Fixes LOG4J2-126.rgoers
updateAdd follow attribute to Console Appender. Fixes LOG4J2-128.rgoers
fixAbstractLogger methods were not passing Markers to the isEnabled methods. Fixes LOG4J2-127.rgoers
addAdded Flume Appender samples.rgoers
updateAdd unit test to verify exceptions are thrown when the socket connection fails. Fixes LOG4J2-122.rgoers
fixJMSQueue and JMSTopic Appenders did not allow name to be specified. Fixes LOG4J2-125.rgoers
fixEnhanced javadoc copyright statement. Fixes LOG4J2-111.rgoers
updateRenamed log4j12-api to log4j-1.2-api. Fixes LOG4J2-110.rgoers
fixTCPSocketManager would fail if the initial connection could not be established. Fixes LOG4J2-120.rgoers
fixA broken socket connection would cause the TCPSocketManager to continuously reconnect. Fixes LOG4J2-119.rgoers
fixThe example for ThreadContextMapFilter was incorrect. Fixes LOG4J2-123. Thanks to Olivier Lamy.rgoers
fixFile renaming was using the wrong date value. Enhanced DefaultRolloverStrategy to store newest files in highest index as well as lowest. Fixes LOG4J2-116.rgoers
fixThreadContext Map elements with null values are now ignored when constructing a Flume event and in the RFC5424 Layout. Fixes LOG4J2-115.rgoers
fixStructuredDataFilter createFilter was annotated with PluginAttr instead of PluginElement for the KeyValuePairs. Fixes LOG4J2-113.rgoers
fixStructuredDataMessage was validating the length of the values in the event Map instead of the lengths of the keys. Fixes LOG4J2-114. Thanks to Arkin Yetis.rgoers

Release 2.0-beta3 - 2012-11-11

TypeChangesBy
fixFix NullPointerException in ClassLoaderContextSelector when no class is returned from the SecurityManager. Fixes LOG4J2-108.rgoers
updateAdd ability to customize the names of the Levels in the LevelPatternConverter. Fixes LOG4J2-105.rgoers
fixPatternParser was not properly handling adjacent nested options Fixes LOG4J2-107.rgoers
fixAdd support for loading plugins inside the OSGi bundle. Fixes LOG4J2-95.rgoers
updateAdd ThreadContext.push(String format, Object... args) Fixes LOG4J2-85.rgoers
fixThe LogEvent was wrapping a ThrowableProxy with another ThrowableProxy when deserializing. Fixes LOG4J2-103. Thanks to Das Archive.rgoers
updateCreated combined jar to combine API and Core contents for users who only want the Log4j implementation.rgoers
fixConvert LogManager binding to use "regular" java properties instead of XML properties to workaround a bug in Oracle's xmlparserv2 jar. Fixes LOG4J2-104.rgoers
addAdded PropertiesRewritePolicy and ability to define properties on a Logger. Fixes LOG4J2-28.rgoers
updateBuild pdf of user's guide. Fixes LOG4J2-87.rgoers
updateAdded font and fontSize parameters to HTMLLayout. Replace newlines in message with br tag. Fixes LOG4J2-29.rgoers
addAdded ability to configure from an InputSource. Fixes LOG4J2-55.rgoers
fixThe Facility value was being improperly calculated. Fixes LOG4J2-102. Thanks to Emanuele Colombo.rgoers
fixA NullPointerException would occur if no format value was passed to the SyslogAppender. Fixes LOG4J2-101. Thanks to Emanuele Colombo.rgoers
fixMapRewritePolicy had an extra call to putAll that caused updates to behave like adds. Fixes LOG4J2-99. Thanks to Das Archive.rgoers
fixAvoid 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.rgoers
fixAdded several missing classes and methods for Log4j 1.x compatibility. Fixes LOG4J2-97.rgoers
fixInterpolator was not stripping Lookup key separator when trying to locate the default value for a variable. Fixes LOG4J2-94. Thanks to Denis Treskunov.rgoers
fixLog4j 1.2 Category.forcedLog was wrapping the message with an ObjectMessage even if the parameter was an ObjectMessage.rgoers

Release 2.0-beta2 - 2012-10-07

TypeChangesBy
updateMade 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.rgoers
fixDefaultConfiguration was not starting the Console Appender.rgoers
addAdd interval and modulate options to TimeBasedTriggeringPolicy to allow more fine-grained control of when file rolling should occur. Fixes LOG4J2-35.rgoers
addAdd support for filtering packages from stack traces. Fixes LOG4J2-58.rgoers
addIf 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. Fixes LOG4J2-84.rgoers
addIf 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. Fixes LOG4J2-83.rgoers
addAdd support for ANSI colors by adding the highlight and style pattern converters. Fix pattern parsing to allow nested patterns.rgoers
fixConverted DynamicThresholdFilter to use KeyValuePair. Fixed bugs in the Map-based filters to allow declaration of multiple values for a key to match the documentation. Fixes LOG4J2-92.rgoers
fixMany 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. Fixes LOG4J2-88.rgoers
addAllow the status logging to be directed to stderr or to a file.rgoers
fixLog4j 1.2 adapter's Category class was missing 3 log methods. Fixes LOG4J2-91.rgoers
fixIf 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. Fixes LOG4J2-84.rgoers
fixIf 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. Fixes LOG4J2-83.rgoers
addAdd getFormats to MultiformatMessage and allow StructuredDataMessage to format as XML.rgoers
fixAdd documentation on client vs server mode to performance page. Fixes LOG4J2-90.rgoers
fixMove variable substitution from PatternLayout to appropriate converters to improve performance.rgoers

Release 2.0-beta1 - 2012-09-18

TypeChangesBy
addAdded AsynchAppender.rgoers
fixPatternLayout was not honoring format modifiers. Fixes LOG4J-81.rgoers
fixCreated web module to allow web applications to include the Log4j context listener in WEB-INF/lib even if Log4j is in the container's class path. Allow locating the LoggerContext to include the ClassLoader. Updated the Loader utility to always choose the child ClassLoader. Verified in Jboss 5 and Tomcat.rgoers
fixMarkerFilter called MarkerManager.getMarker causing the Marker to be created during the processing of the configuration. This prevents the application from creating the Marker with any parents. MarkerWrapper in SLF4J-impl was getting a ClassCastException in instanceOf because the Marker isn't a MarkerWrapper. Fixes LOG4J2-82.rgoers
fixAllow Log4j 2 to be used as the implementation with SLF4J and SLF4J's jcl-over-slf4j by adding filtering to the log method in SLF4JLogger. Fixes LOG4J2-80. Thanks to Oliver Lamy.rgoers
fixLogFactoryImpl.setAttribute in the Commons Logging bridge got a NullPointerException when passed a null value. It will now remove the attribute. Fixes LOG4J2-78.rgoers
fixRoutingAppender was calling the stop method for each of its referenced Appenders and was calling the stop method of the default Appender a second time. It will now only call the stop method of Appenders it creates. Fixes LOG4J2-77.rgoers
fixRewriteAppender was calling the stop method of the referenced appender causing the referenced appender's manager to have its use count decremented too many times. Fixes LOG4J2-76.rgoers
fixLogger.error(Marker, Message, Throwable) was internally using Level.TRACE. Fixes LOG4J2-74.rgoers
fixEnhanced Log4jContextListener to accept a configuration file location. Modified FileConfigurationMonitor to monitor files configured that way. Fixed other reconfiguration related bugs. Tested in JBoss and Tomcat. Fixes LOG4J2-75.rgoers
fixNullPointerException in RollingFileManager when filePattern does not cause the file to be compressed. Fixes LOG4J2-72.rgoers
fixFileRenameAction did not create the parent directories of the archive files causing the rollover to fail. Fixes LOG4J2-71.rgoers
updateUpdate the versions of SLF4J and Logback.rgoers

Release 2.0-alpha2 - 2012-08-24

TypeChangesBy
addAdd getLogger(Class) to LogManager. Fixes LOG4J2-70.rgoers
addAllow Flume agents to be embedded into the Flume Appender. Fixes LOG4J2-69.rgoers
addAdd support for formatting using String.format(). Fixes LOG4J2-68.rgoers
addAllow components besides core to create a PluginMap for faster plugin loading and not having to specify the plugin package in the configuration. Fixes LOG4J2-67.rgoers
fixFix compilation problems in Java 7. Fixes LOG4J2-64.rgoers
fixAllow variable substitution on the configuration attributes and on the root log level. Fixes LOG4J2-65.rgoers

Release 2.0-alpha1 - 2012-07-29

TypeChangesBy
addAdded ability to filter on the AppenderRef by adding either a level or a filter. Fixes LOG4J2-60. Thanks to Shane Kelly.rgoers
fixLevel.toLevel would throw an IllegalArgumentException instead of returning the default value. Fixes LOG4J2-56. Thanks to John Owen Atala.rgoers
fixRemove LoggerContext support for custom logger factories. All Loggers returned by LoggerContext should be compatibile and of the same type. Fixes LOG4J2-51. Thanks to John Vasileff.rgoers
fixMake sure all application facing log methods use their own FQCN. This patch resolves a unit test failure for the %C pattern when using the Category logger. Fixes LOG4J2-50. Thanks to John Vasileff.rgoers