Terpene

According to mvnrepository, logback[1] is the most popular Java logging framework[2]. It is the spiritual[peacock prose] successor of log4j 1.x and is very similar architecturally to log4j 1.x.

The main difference between log4j 1.x and logback is that logback implements the SLF4J API[3] natively. In addition, logback has a larger battery of tests and more extensive documentation.[4]

Modules

Logback ships with three modules. The logback-classic module which is the equivalent of log4j 1.x. The logback-access module can be integrated with web-container to log HTTP traffic. The logback-core module provides common functionality required by the previous two modules.

Architecture of logback-classic

References

  1. ^ "Logback Home". logback.qos.ch. Retrieved 2022-02-22.
  2. ^ Goebelbecker, Eric (2018-05-08). "A Guide To Logback | Baeldung". www.baeldung.com. Retrieved 2022-08-05.
  3. ^ "SLF4J". www.slf4j.org. Retrieved 2022-08-05.
  4. ^ "Logback Manual". logback.qos.ch. Retrieved 2022-08-05.

Leave a Reply