JBoss Community

Re: AS7 Logging - org.jboss.logging.jul-to-slf4j-stub ?

created by rang s in JBoss AS 7 Development - View the full discussion

Looks like either something is missing or I am doing it wrongly.

 

This is the scenario I am trying. I have a EJB jar file. It uses java util logging. Now I wish to use JUL-to-SLF4J stub and then wish to log the messages via log4j. i.e I want the java.util.logging calls to direct to slf4j via SLF4JBridgeHandler( I have specified this handled in logging.properties bundled in ejb jar, hope this is the right way) .

 

I have tried adding log4j.properties in the ejb jar but the messages were not logged. For slf4j to log messages via log4j, do I need to do something more ?( SLF4J says that an application needs to have  and log4j. The former I bundle with my ejb jar. The latter is provided by JBoss AS7. Hope this is fine)

 

Regarding point 2 . I have created a issue - > https://issues.jboss.org/browse/AS7-5174

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community