Log back not able to find the configuration file (logback.xml)

自古美人都是妖i 提交于 2019-12-06 08:41:12
artbristol

JBoss AS helpfully diverts your logging to its own JBoss Log framework. See Logback and Jboss 7 - don't work together?

On my project, I gave up trying to use Logback (except in tests) and just put up with JBoss logging, because it was able to do everythin we needed.

Just add following dependecy into your pom.xml file,

    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.6.6</version>
    </dependency>

    <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-core</artifactId>
        <version>1.0.7</version>
    </dependency>

    <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-classic</artifactId>
        <version>1.0.7</version>
    </dependency>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!