Apache Log4j v2.6 發布

jopen 8年前發布 | 15K 次閱讀 Java 日志 Apache Log4j

Log4j是Apache的一個開放源代碼項目,通過使用Log4j,我們可以控制日志信息輸送的目的地是控制臺、文件、GUI組件、甚至是套接口服務 器、NT的事件記錄器、UNIX Syslog守護進程等;我們也可以控制每一條日志的輸出格式;通過定義每一條日志信息的級別,我們能夠更加細致地控制日志的生成過程。最令人感興趣的就 是,這些可以通過一個配置文件來靈活地進行配置,而不需要修改應用的代碼。

更新日志

Type Changes By
Apache Log4j v2.6 發布 (GC) Added support for garbage-free logging in steady state. This includes Async Loggers and logging synchronously to the console and to a file, but does not include the AsyncAppender. This release makes the GelfLayout and the main patterns in the PatternLayout garbage-free. Fixes LOG4J2-1270. rpopma
Apache Log4j v2.6 發布 (GC) Added manual page on garbage-free logging. Fixes LOG4J2-1297. rpopma
Apache Log4j v2.6 發布 (GC) Update Logger wrapper Generator tool to generate methods for the new Logger methods. Fixes LOG4J2-1373. rpopma
Apache Log4j v2.6 發布 (GC) GelfLayout does now support garabage-free logging (with compressionType=OFF). Fixes LOG4J2-1356. mikes
Apache Log4j v2.6 發布 (GC) Added methods to the Logger interface for logging CharSequence messages. Fixes LOG4J2-1326. rpopma
Apache Log4j v2.6 發布 (GC) FileAppender, RollingFileAppender and MemoryMappedFileAppender are now also garbage-free by default. Fixes LOG4J2-1344. rpopma
Apache Log4j v2.6 發布 (GC) ConsoleAppender is now garbage-free by default. This logic is reusable for all AbstractOutputStreamAppender subclasses. Fixes LOG4J2-1343. rpopma
Apache Log4j v2.6 發布 (GC) Added unrolled varargs methods to Logger API, added Unbox utility to avoid auto-boxing when logging primitive values. Fixes LOG4J2-1278. rpopma
Apache Log4j v2.6 發布 (GC) Avoid allocating unnecessary temporary objects in LoggerContext's getLogger methods. Fixes LOG4J2-1318. rpopma
Apache Log4j v2.6 發布 (GC) Avoid allocating unnecessary temporary objects in MarkerManager's getMarker methods. Fixes LOG4J2-1333. rpopma
Apache Log4j v2.6 發布 (GC) Avoid allocating unnecessary temporary objects in PatternLayout's NamePatternConverter and ClassNamePatternConverter. Fixes LOG4J2-1321. rpopma
Apache Log4j v2.6 發布 (GC) Add MessageFactory that avoid allocation by reusing a cached ParameterizedMessage instance. Fixes LOG4J2-1271. rpopma
Apache Log4j v2.6 發布 (GC) ParameterizedMessage optimizations to avoid or at least postpone allocating temporary objects. Fixes LOG4J2-1271. rpopma
Apache Log4j v2.6 發布 (GC) Provide ThreadLocal-based gc-free caching mechanism in DatePatternConverter for non-webapps. Fixes LOG4J2-1283. rpopma
Apache Log4j v2.6 發布 (GC) Add interface StringBuilderFormattable to enable converting Messages and parameters to text without allocating temporary objects. ParameterizedMessage, ObjectMessage, SimpleMessage and ThreadDumpMessage now implement StringBuilderFormattable. Fixes LOG4J2-1293. rpopma
Apache Log4j v2.6 發布 (GC) Update PatternLayout to utilize gc-free mechanism for LogEvent processing. Fixes LOG4J2-1291. rpopma
Apache Log4j v2.6 發布 (GC) Update RandomAccessFileAppender and RollingRandomAccessFileAppender to utilize gc-free Layout.encode() method. Fixes LOG4J2-1292. rpopma
Apache Log4j v2.6 發布 (GC) Add encode(LogEvent, ByteBufferDestination) method to Layout API to enable converting LogEvents to bytes without creating temporary objects. Fixes LOG4J2-1274. rpopma
Apache Log4j v2.6 發布 (GC) LoggerConfig.getProperties() should not allocate on each call. Fixes LOG4J2-1281. rpopma
Apache Log4j v2.6 發布 (GC) Improve LoggerConfig's data structure for AppenderControl objects to avoid allocating temporary objects during traversal for each log event. Fixes LOG4J2-1272. rpopma
Apache Log4j v2.6 發布 (GC) AsyncLogger should use thread-local translator by default. Fixes LOG4J2-1269. rpopma
Apache Log4j v2.6 發布 Generate MDC properties as a JSON map in JSONLayout, with option to output as list of map entries. Fixes LOG4J2-623. rpopma
Apache Log4j v2.6 發布 Added a YAML layout. Fixes LOG4J2-1362. Thanks to Gary Gregory. rpopma
Apache Log4j v2.6 發布 Fixed memory leak related to shutdown hook. Fixes LOG4J2-1387. rpopma
Apache Log4j v2.6 發布 Documented benchmark results comparing Log4j 2 performance to other logging libraries. Fixes LOG4J2-1179. rpopma
Apache Log4j v2.6 發布 Copying a MutableLogEvent using Log4jLogEvent.Builder should not unnecessarily obtain caller location information. Fixes LOG4J2-1382. rpopma
Apache Log4j v2.6 發布 Document dependencies for layouts. Fixes LOG4J2-1011. mikes
Apache Log4j v2.6 發布 Pattern to drop first N package parts. Fixes LOG4J2-621. Thanks to Lee Theobald, Kamal Mettananda, Gary Gregory. ggregory
Apache Log4j v2.6 發布 Support merging configurations to for a composite configuration. Fixes LOG4J2-494. Thanks to Philipp Knobel. rgoers
Apache Log4j v2.6 發布 Option to not log stack traces for logged Throwables in GelfLayout. Fixes LOG4J2-1357. mikes
Apache Log4j v2.6 發布 Update SLF4J from 1.7.13 to 1.7.21. Fixes LOG4J2-1375. rpopma
Apache Log4j v2.6 發布 Migrate tests from Logback 1.1.3 to 1.1.7. Fixes LOG4J2-1374. rpopma
Apache Log4j v2.6 發布 Update Apache Commons CSV from 1.2 to 1.3. Fixes LOG4J2-1384. ggregory
Apache Log4j v2.6 發布 XMLLayout indents, but not the first child tag (Event). Fixes LOG4J2-1372. Thanks to Kamal Mettananda, Gary Gregory. rgoers
Apache Log4j v2.6 發布 Properties Configuration did not support includeLocation attribute on Loggers. Fixes LOG4J2-1363. rgoers
Apache Log4j v2.6 發布 The ConfigurationSource was not saved for BuiltConfigurations so monitor interval had no effect. Fixes LOG4J2-1263. rgoers
Apache Log4j v2.6 發布 "xz" compression results in plaintext, uncompressed files. Fixes LOG4J2-1369. Thanks to Alex Birch, Gary Gregory. ggregory
Apache Log4j v2.6 發布 (Log4j-internal) Provide message text as CharSequence for some message types to optimize some layouts. Fixes LOG4J2-1365. mikes
Apache Log4j v2.6 發布 (Log4j-internal) StatusLogger dropped exceptions when logging parameterized messages. Fixes LOG4J2-1368. rpopma
Apache Log4j v2.6 發布 Add an AutoCloseable ThreadContext class: CloseableThreadContext. Fixes LOG4J2-1348. Thanks to Greg Thomas, Gary Gregory. ggregory
Apache Log4j v2.6 發布 (Doc) Clarify documentation for properties that control Log4j behaviour. Fixes LOG4J2-1345. rpopma
Apache Log4j v2.6 發布 LoggerFactory in 1.2 API module is not compatible with 1.2. Fixes LOG4J2-1336. Thanks to Zbynek Vyskovsky. ggregory
Apache Log4j v2.6 發布 No configuration reload is triggered under Windows when replacing the configuration file with one that has older last modified date. Fixes LOG4J2-1354. Thanks to Arkadiusz Adolph. ggregory
Apache Log4j v2.6 發布 Exception from Log4jServletContextListener prevents jetty-maven-plugin run-forked. Fixes LOG4J2-1346.  
Apache Log4j v2.6 發布 (Perf) AsyncLogger performance optimization: avoid calling instanceof TimestampMessage in hot path. Fixes LOG4J2-1339. rpopma
Apache Log4j v2.6 發布 Improve error handling in the Async Logger background thread: the new default exception handler no longer rethrows the error. Fixes LOG4J2-1324. rpopma
Apache Log4j v2.6 發布 Configuration file error does not show cause exception. Fixes LOG4J2-1309. ggregory
Apache Log4j v2.6 發布 Add pattern converter for thread id and priority in PatternLayout. Fixes LOG4J2-1299. ggregory
Apache Log4j v2.6 發布 Change flow logging text from "entry' to "Enter" and "exit" to "Exit". Fixes LOG4J2-1289. ggregory
Apache Log4j v2.6 發布 Made default MessageFactory configurable. Fixes LOG4J2-1284. rpopma
Apache Log4j v2.6 發布 Deprecate org.apache.logging.log4j.util.MessageSupplier. Fixes LOG4J2-1280. ggregory
Apache Log4j v2.6 發布 Logger methods taking Supplier parameters now correctly handle cases where the supplied value is a Message. Fixes LOG4J2-1280. rpopma
Apache Log4j v2.6 發布 FixedDateFormat was incorrect for formats having MMM with the French locale. Fixes LOG4J2-1268. rpopma
Apache Log4j v2.6 發布 Add enhanced entry and exit methods. Fixes LOG4J2-1255. rgoers
Apache Log4j v2.6 發布 Add shutdown methods to LogManager. Fixes LOG4J2-124. rgoers
Apache Log4j v2.6 發布 Creation of a LoggerContext will fail if shutdown is in progress. LogManager will default to SimpleLogger instead. Fixes LOG4J2-1222. rgoers
Apache Log4j v2.6 發布 Added async logger Timeout wait strategy and made this the default wait strategy for async loggers. This prevents a rare deadlock that may occur on Solaris. Fixes LOG4J2-1221. Thanks to Michael Barker. rpopma
Apache Log4j v2.6 發布 Added option to discard events below a certain log level if the async logger ring buffer or async appender queue is full. Fixes LOG4J2-1080. rpopma
Apache Log4j v2.6 發布 Make PatternLayout header and footer accept a pattern. Fixes LOG4J2-1237. Thanks to Mike Calmus, Gary Gregory. ggregory
Apache Log4j v2.6 發布 Make header and footer values customizable in JSONLayout. Fixes LOG4J2-1244. Thanks to Anshu Garg, Remko Popma, Gary Gregory. ggregory
Apache Log4j v2.6 發布 Make CSV Layout header and footers accept patterns. Fixes LOG4J2-1245. ggregory
Apache Log4j v2.6 發布 Dynamic Subject for SMTP Appender. Fixes LOG4J2-1192. Thanks to Jörg Bretschneider, Gary Gregory. ggregory
Apache Log4j v2.6 發布 FormattedMessage, MessageFormatMessage and StringFormattedMessage should support passing in a Locale to ensure appropriate formatting. Fixes LOG4J2-1277. Thanks to Gary Gregory, Ludovic Hochet. ggregory
Apache Log4j v2.6 發布 TlsSyslogFrame calculates message length incorrectly. Fixes LOG4J2-1260. Thanks to Blake Day, Gary Gregory. ggregory
Apache Log4j v2.6 發布 Async DynamicThresholdFilter does not use the log event's context map. Fixes LOG4J2-1258. Thanks to Francis Lalonde. ggregory
Apache Log4j v2.6 發布 Incorrect log rotation in last week of year. Fixes LOG4J2-1232. Thanks to Nikolai. ggregory
Apache Log4j v2.6 發布 Fixed broken nanotime in pattern layout. Fixes LOG4J2-1248. rpopma
Apache Log4j v2.6 發布 JSONLayout doesn't add a comma between log events. Fixes LOG4J2-908. Thanks to Konstantinos Liakos, Patrick Flaherty, Robin Coe, Gary Gregory. ggregory
Apache Log4j v2.6 發布 Don't concatenate SYSLOG Messages. Fixes LOG4J2-1230. Thanks to Vladimir Hudec, Ralph Goers, Gary Gregory. ggregory
Apache Log4j v2.6 發布 org.apache.logging.log4j.core.net.TcpSocketManager and other classes does not report internal exceptions to the status logger. Fixes LOG4J2-1238. ggregory
Apache Log4j v2.6 發布 Fix documentation to specify the correct default wait strategy used by async loggers. Fixes LOG4J2-1212. rpopma
Apache Log4j v2.6 發布 Documentation/XSD inconsistencies. Fixes LOG4J2-1215. Thanks to Erik Kemperman. ggregory
Apache Log4j v2.6 發布 LoggerMessageSupplierTest and LoggerSupplierTest are Locale sensitive. Fixes LOG4J2-1276. Thanks to Ludovic Hochet. ggregory
Apache Log4j v2.6 發布 Update Jackson from 2.7.3 to 2.7.4. Fixes LOG4J2-1380. ggregory
Apache Log4j v2.6 發布 Update Jackson from 2.7.0 to 2.7.2. Fixes LOG4J2-1304. ggregory
Apache Log4j v2.6 發布 Update LMAX Disruptor from 3.3.2 to 3.3.4. Fixes LOG4J2-1253. ggregory
Apache Log4j v2.6 發布 Update SLF4J from 1.7.12 to 1.7.13. Fixes LOG4J2-1219. ggregory
Apache Log4j v2.6 發布 Update Jackson from 2.6.3 to 2.6.4. Fixes LOG4J2-1239. ggregory
Apache Log4j v2.6 發布 Update Jackson from 2.6.4 to 2.7.0. Fixes LOG4J2-1249. ggregory
Apache Log4j v2.6 發布 Update Jackson from 2.7.2 to 2.7.3. Fixes LOG4J2-1351. ggregory
Apache Log4j v2.6 發布 Update Liquibase from 3.3.5 to 3.4.2. Fixes LOG4J2-1240. ggregory
Apache Log4j v2.6 發布 Update Kafka client from 0.9.0.0 to 0.9.0.1. Fixes LOG4J2-1294. ggregory
Apache Log4j v2.6 發布 Update javax.mail from 1.5.4 to 1.5.5. Fixes LOG4J2-1352. ggregory
Apache Log4j v2.6 發布 Update Apache Commons Compress from 1.10 to 1.11. Fixes LOG4J2-1358. ggregory
Apache Log4j v2.6 發布 Update Google java-allocation-instrumenter from 3.0 to 3.0.1. Fixes LOG4J2-1388. rpopma
Apache Log4j v2.6 發布 Misleading Value In Properties Example. Fixes LOG4J2-1233. Thanks to Bahri Gencsoy. ggregory
Apache Log4j v2.6 發布 Fix JUL bridge issue where LogRecord.getParameters() is used when null. Fixes LOG4J2-1251. Thanks to Romain Manni-Bucau. mattsicker
Apache Log4j v2.6 發布 Fix typo in Flow Tracing documentation. Fixes LOG4J2-1254. Thanks to Josh Trow. rpopma
Apache Log4j v2.6 發布 ClassNotFoundException for BundleContextSelector when initialising in an OSGi environment. Fixes LOG4J2-920. Thanks to Ludovic Hochet. mattsicker
Apache Log4j v2.6 發布 Remove serializability from classes that don't need it. Fixes LOG4J2-1300. mattsicker
Apache Log4j v2.6 發布 Add documentation links to runtime dependencies in each component intro page. Fixes LOG4J2-1303. mattsicker
Apache Log4j v2.6 發布 Fix RollingAppenderNoUnconditionalDeleteTest repeat test runs from failing. Fixes LOG4J2-1275. Thanks to Ludovic Hochet. mattsicker
Apache Log4j v2.6 發布 Stop throwing unnecessary exception in Log4jServletContextListener.contextDestroyed(). Fixes LOG4J2-1262. mattsicker
Apache Log4j v2.6 發布 JeroMqAppender should support layouts. Fixes LOG4J2-1252. mattsicker
Apache Log4j v2.6 發布 NullPointerException in MapLookup.lookup if the event is null. Fixes LOG4J2-1227. Thanks to Olivier Lemasle. mattsicker
Apache Log4j v2.6 發布 JeroMqAppender should use ShutdownCallbackRegistry instead of runtime hooks. Fixes LOG4J2-1306. mattsicker
Apache Log4j v2.6 發布 PatternLayout option to limit length of text. Fixes LOG4J2-1217. Thanks to Thies Wellpott. mattsicker
Apache Log4j v2.6 發布 Remove need to pre-specify appender et al. identifiers in property file config format. Fixes LOG4J2-1308. mattsicker
Apache Log4j v2.6 發布 Add a Log4jLookup class to help write log files relative to log4j2.xml. Fixes LOG4J2-1050. Thanks to Adam Retter. mattsicker
Apache Log4j v2.6 發布 Add JNDI lookup documentation. Fixes LOG4J2-1133. mattsicker
Apache Log4j v2.6 發布 JndiLookup mindlessly casts to String and should use String.valueOf(). Fixes LOG4J2-1310. mattsicker
Apache Log4j v2.6 發布 org.apache.logging.log4j.core.LoggerContext#updateLoggers should call firePropertyChangeEvent. Fixes LOG4J2-1206. mattsicker
Apache Log4j v2.6 發布 Log4jWebInitializerImpl: Use Thread instead of Class for fallback classloader. Fixes LOG4J2-248. mattsicker
Apache Log4j v2.6 發布 PatternLayout: Possible variable substitution in equals substitution parameter. Fixes LOG4J2-1169. Thanks to Gerald Kritzinger. mattsicker
Apache Log4j v2.6 發布 Update Log4j 1.x migration guide to include information about system property lookup syntax changes. Fixes LOG4J2-1322. mattsicker
Apache Log4j v2.6 發布 Fix NoClassDefFoundError in ReflectionUtil on Google App Engine. Fixes LOG4J2-1330. mattsicker

下載

Mirrors Checksum Signature
Apache Log4j 2 binary (tar.gz) apache-log4j-2.6-bin.tar.gz apache-log4j-2.6-bin.tar.gz.md5 apache-log4j-2.6-bin.tar.gz.asc
Apache Log4j 2 binary (zip) apache-log4j-2.6-bin.zip apache-log4j-2.6-bin.zip.md5 apache-log4j-2.6-bin.zip.asc
Apache Log4j 2 source (tar.gz) apache-log4j-2.6-src.tar.gz apache-log4j-2.6-src.tar.gz.md5 apache-log4j-2.6-src.tar.gz.asc
Apache Log4j 2 source (zip) apache-log4j-2.6-src.zip apache-log4j-2.6-src.zip.md5 apache-log4j-2.6-src.zip.asc

 

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!