Spring boot integration log4j2

First, let's talk about why to reference logs: 1. Background introduction Log4j may be the most commonly used log generation dependent jar package. Of course, there are other log generation jar packages, such as log4j2, and so on. South is System.out.print/println, which is our common console printing method. Log4j is an open source project ...

Posted by Jbert2 on Tue, 07 Dec 2021 11:04:37 +0100

Experience gained after being hit many times by performance bottlenecks caused by a large number of online log outputs

Due to the large scale of online services (hundreds of millions of daily requests and hundreds of thousands of daily live users), and the complex logic involved in the business, we use the info level for the online log level, resulting in a very large amount of online logs. We often encounter performance bottlenecks caused by too slow log writi ...

Posted by ttroutmpr on Mon, 01 Nov 2021 09:47:57 +0100