差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 下次修改 Both sides next revision | ||
java:log4j [2022/04/10 11:43] tony [Articles for Log4j 2.x] |
java:log4j [2022/04/12 14:21] tony |
||
---|---|---|---|
行 17: | 行 17: | ||
* [[.:log4j2:indicateConfigurationFile|Indicate Log4j2 Configuration File]] | * [[.:log4j2:indicateConfigurationFile|Indicate Log4j2 Configuration File]] | ||
* [[.:log4j2:mdc|MDC with Log4j2]] | * [[.:log4j2:mdc|MDC with Log4j2]] | ||
+ | * [[.:log4j2:appenders|Log4j2 Appenders]] | ||
+ | * [[.:log4j2:timeAndSizeRollingAppender|在Log4j2設定TimeAndSizeRollingAppender]] | ||
* [[.:log4j2:ChangeLogLevelAtRuntime|Change log level at runtime]] | * [[.:log4j2:ChangeLogLevelAtRuntime|Change log level at runtime]] | ||
* [[.:log4j2:ReloadConfiguration|Reload Log4j configuration]] | * [[.:log4j2:ReloadConfiguration|Reload Log4j configuration]] | ||
行 24: | 行 26: | ||
* [[https://logging.apache.org/log4j/2.x/manual/migration.html|Migrating from Log4j 1.x to 2.x]] | * [[https://logging.apache.org/log4j/2.x/manual/migration.html|Migrating from Log4j 1.x to 2.x]] | ||
* [[https://codertw.com/%E4%BC%BA%E6%9C%8D%E5%99%A8/157515/|MDC to ThreadContext]] 可以參考log4j-1.2-api bridge做法:[[https://github.com/apache/logging-log4j2/blob/f72100df0decc9bda96b4d769822c4e48b2848fc/log4j-1.2-api/src/main/java/org/apache/log4j/MDC.java|link]] | * [[https://codertw.com/%E4%BC%BA%E6%9C%8D%E5%99%A8/157515/|MDC to ThreadContext]] 可以參考log4j-1.2-api bridge做法:[[https://github.com/apache/logging-log4j2/blob/f72100df0decc9bda96b4d769822c4e48b2848fc/log4j-1.2-api/src/main/java/org/apache/log4j/MDC.java|link]] | ||
+ | * [[https://stackoverflow.com/questions/31384939/log4j2-including-library-name-in-stacktrace|讓exception stacktrace沒有library路徑]] | ||
===== ===== | ===== ===== |