Home > Java > javaTutorial > What are the common logging frameworks in Java?

What are the common logging frameworks in Java?

王林
Release: 2023-04-30 09:19:06
forward
1624 people have browsed it

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>
Copy after login

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!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template