1. Log4j is a Java-based logging tool.
was pioneered by CekiGulcu and is now an Apache Software Foundation project.
2. Log4j2 is a Log4j upgrade product developed by apache.
Logback The currently popular logging framework comes from the author of log4j, and its performance is significantly higher than log4j.
3. JUL.
Java Utill logging, the official log since Java1.4.
4. Slf4j is a simple Java log facade.
Simple logging Facade for Java has no log implementation itself.
5. CommonsLoging: a project of the Apache Foundation.
is a set of Java log interfaces, formerly called Jakarta Commons Logging, and later renamed Commons Logging.
Example
<dependencies> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.13</version> </dependency> <!--logback-classic依赖logback-core,会自动级联引入--> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.2.3</version> </dependency> </dependencies>
The above is the detailed content of What are the common logging frameworks in Java?. For more information, please follow other related articles on the PHP Chinese website!