[jboss-dev-forums] [JBoss AS 7 Development] - logback and JBoss 7.1.1.Final
hd0815
do-not-reply at jboss.com
Thu Apr 19 03:56:16 EDT 2012
hd0815 [https://community.jboss.org/people/hd0815] created the discussion
"logback and JBoss 7.1.1.Final"
To view the discussion, visit: https://community.jboss.org/message/731016#731016
--------------------------------------------------------------
Hi,
I'm facing problems in getting my enterprise application read the logback.xml and configure my logger.
I read serveral discussions about this issue already, but nothing seems to work for me. For several reasons I need to use logback and cannot switch to a different logging framework.
I tried to exclude org.slf4j in my deployment and all sub-deployments in jboss-deployment-structure.xml, but this had no effect. Everything is still logged to server.log and only to server.log.
Here is my jboss-deployment-structure.xml from the ear-File:
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="org.sl4j" />
<module name="org.slf4j.impl" />
</exclusions>
</deployment>
<sub-deployment name="ejb.jar">
<exclusions>
<module name="org.sl4j" />
<module name="org.slf4j.impl" />
</exclusions>
</sub-deployment>
<sub-deployment name="web.war">
<exclusions>
<module name="org.sl4j" />
<module name="org.slf4j.impl" />
</exclusions>
</sub-deployment>
</jboss-deployment-structure>
The structure of my project is as follows:
ear.ear
|
|--- lib
. |
. |--- slf4j-api.jar
. |--- logback-classic.jar
. |--- logback-core.jar
|--- ejb.jar
. |--- logback.xml
|--- META-INF
. |--- jbopss-deployment-structure.xml
|--- web.war
In logback.xml a different log folder is defined. Nothing is logged to this folder.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/731016#731016]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120419/08240826/attachment.html
More information about the jboss-dev-forums
mailing list