java - SLF4J logs are not coming in the specific error/trace file. It is coming in server.log -


i programming in java. have used executor service. logs printing in specified trace.log file main thread. threads created executor service, logs getting printed in jboss server.log. how these logs in trace.log instead of in server.log?

i found concurrency should not affect functionality of slf4j. is slf4j used in multithreaded application logging database?

could please tell missing here?

thanks in advance.

you have exclude slf4j jboss. can jboss-deployment-structure.xml

my jboss-deployment-structure located in ear module under resources/meta-inf folder , looks this:

<?xml version="1.0" encoding="utf-8"?> <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"> <deployment>     <exclusions>         <module name="org.slf4j" slot="main" />         <module name="org.slf4j.impl" slot="main" />     </exclusions> </deployment>  <sub-deployment name="some-war.war">     <exclusions>         <module name="org.slf4j" />         <module name="org.slf4j.impl" />     </exclusions> </sub-deployment> 

in some-war.war module can use logback logs defined files.


Comments