Log4j2 asynchronous log optimization based on Disruptor (partial source code learning)

1, Foreword  recently, I encountered a thread blocking problem caused by log4j2 logging (thanks to the development brother's logging, otherwise there would be no following operations).Give a general description of the situation at that time (due to the restriction of Intranet, we can't take out the on-site things, so we can only dictate):l ...

Posted by ojav on Fri, 26 Nov 2021 17:34:27 -0800

Log frame - Yanchi

All test contents are synchronized to: https://gitee.com/panlsp/logging_framework Common log frameworks and log facade common log implementations: JUL, log4j, logback, log4j2 Common log facade: JCL, slf4j Order of occurrence: log4j -- > Jul – > JCL – > slf4j -- > logback -- > log4j2e 1. log4j logging framework Im ...

Posted by Strikebf on Mon, 11 Oct 2021 17:32:03 -0700

How to dynamically load the log file path in [Spring] log4j2.xml

Note: it is only for Spring projects, not for Spring boot and Spring cloud Project scenario: The project framework is Spring + spring MVC + mybatis. When the project starts, different configuration files are loaded, and then the effect of different environments is achieved. It can be understood that there are four configuration files a.proper ...

Posted by phencesgirl on Thu, 07 Oct 2021 18:13:51 -0700