log4j初级配置教程

  • 先来看个采用log4j输出日志的例子

    添加依赖包

    1
    2
    3
    4
    5
    <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <version>1.7.7</version>
    </dependency>
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×