Log4j 2.8 ·¢²¼ÁË¡£Log4jÊÇApacheµÄÒ»¸ö¿ª·ÅÔ´´úÂëÏîÄ¿£¬Í¨¹ýʹÓÃLog4j£¬ÎÒÃÇ¿ÉÒÔ¿ØÖÆÈÕÖ¾ÐÅÏ¢ÊäË͵ÄÄ¿µÄµØÊÇ¿ØÖÆÌ¨¡¢Îļþ¡¢GUI×é¼þ¡¢ÉõÖÁÊÇÌ×½Ó¿Ú·þÎñ Æ÷¡¢NTµÄʼþ¼Ç¼Æ÷¡¢UNIX SyslogÊØ»¤½ø³ÌµÈ;ÎÒÃÇÒ²¿ÉÒÔ¿ØÖÆÃ¿Ò»ÌõÈÕÖ¾µÄÊä³ö¸ñʽ;ͨ¹ý¶¨ÒåÿһÌõÈÕÖ¾ÐÅÏ¢µÄ¼¶±ð£¬ÎÒÃÇÄܹ»¸ü¼ÓϸÖµؿØÖÆÈÕÖ¾µÄÉú³É¹ý³Ì¡£×îÁîÈ˸ÐÐËȤµÄ¾Í ÊÇ£¬ÕâЩ¿ÉÒÔͨ¹ýÒ»¸öÅäÖÃÎļþÀ´Áé»îµØ½øÐÐÅäÖ㬶ø²»ÐèÒªÐÞ¸ÄÓ¦ÓõĴúÂë¡£
´Ë°æ±¾°üº¬¼¸¸ö´íÎóÐÞ¸´ºÍй¦ÄÜ¡£Ð¹¦ÄܰüÀ¨Äܹ»Ê¹ RollingFileAppender ÈÕÖ¾Ö±½ÓдÈëµ½¹éµµÎļþ¡£
ÓйØÐ¹¦ÄܺÍÐÞ¸´µÄ¸ü¶àÏêϸÐÅÏ¢£¬²Î¼ûÏÂÃæ£º
ÐÂÌØÐÔ£º
LOG4J2-1032: Make DefaultRolloverStrategy more efficent when renaming files. Add nomax option to the fileIndex attribute.
LOG4J2-1101: RollingFileAppender now supports omitting the file name and writing directly to the archive files.
LOG4J2-1243: Allow default value in property to be a Lookup.
LOG4J2-1787: Document how to exclude transitive conflicting dependencies in Maven and Gradle.
LOG4J2-1773: Add StatusLoggerRule to allow unit tests to set a status level.
LOG4J2-424: Add non-string data type support to JdbcAppender via new ColumnMapping plugin.
LOG4J2-1771: Add a Builder to ColumnConfig and deprecate ColumnConfig.createColumnConfig().
LOG4J2-1770: Add a Builder to JdbcAppender and deprecate JdbcAppender.createAppender().
LOG4J2-1764: Use MethodHandle in ContextDataFactory cached constructor.
LOG4J2-1730: Add Apache Cassandra appender and ColumnMapping plugin.
LOG4J2-1759: Add TypeConverter for java.util.UUID.
LOG4J2-1758: Add TypeConverter for java.nio.file.Path.
LOG4J2-1755: Add TypeConverter and constraint validators for java.net.InetAddress and port numbers.
LOG4J2-969: Refactor SyslogAppender so that Layout is a Plugin element.
LOG4J2-1660: Added public method ThreadContext::getThreadContextMap; removed class ThreadContextAccess.
LOG4J2-1379: Add documentation regarding YAML configuration format.
LOG4J2-1718: Introduce marker interface AsynchronouslyFormattable.
LOG4J2-1681: Introduce interfaces IndexedStringMap and IndexedReadOnlyStringMap, supporting garbage-free iteration over sorted map.
LOG4J2-1695: Add a Builder to ScriptPatternSelector and deprecate ScriptPatternSelector.createSelector().
LOG4J2-1696: Add a Builder to MarkerPatternSelector and deprecate MarkerPatternSelector.createSelector().
LOG4J2-1697: Add a SerializerBuilder to PatternLayout and deprecate PatternLayout.createSerializer().
LOG4J2-1701: Add a Builder to RandomAccessFileAppender and deprecate RandomAccessFileAppender.createAppender().
LOG4J2-1703: Add a Builder to MemoryMappedFileAppender and deprecate MemoryMappedFileAppender.createAppender().
LOG4J2-1704: Add a Builder to RollingRandomAccessFileAppender and deprecate RollingRandomAccessFileAppender.createAppender().
LOG4J2-1709: Add a Builder to SyslogAppender and deprecate SyslogAppender.createAppender().
LOG4J2-1707: Allow TCP Socket Appender to set socket options.
LOG4J2-1708: Allow Secure Socket Appender to set socket options.
LOG4J2-1737: Add a Builder to SyslogLayout and deprecate SyslogLayout.createLayout(Facility, boolean, String, Charset).
LOG4J2-1738: Add a Builder to JsonLayout and deprecate org.apache.logging.log4j.core.layout.JsonLayout.createLayout(Configuration, boolean, boolean, boolean, boolean, boolean, boolean, String, String, Charset, boolean).
LOG4J2-1739: Add Builder to KafkaAppender and deprecate KafkaAppender.createAppender(Layout, Filter, String, boolean, String, Property[], Configuration).
LOG4J2-1733: Add SyncSend attribute to KafkaAppender (as in KafkaLog4jAppender). Thanks to Vincent Tieleman.
Apache Log4j 2.8 ×îµÍÐèÒª Java 7 À´¹¹½¨ºÍÔËÐУ¬Log4j 2.3 ÊÇÖ§³Ö Java 6 µÄ×îºóÒ»¸ö°æ±¾¡£
ÏÂÔØµØÖ·£ºhttp://logging.apache.org/log4j/2.x/download.html
À´×Ô:¿ªÔ´ÖйúÉçÇø

