JBoss Community

Re: java.util.logging to Log4j mapping

created by Eleni S, in Beginner's Corner - View the full discussion

David Lloyd wrote:

 

This is because we don't directly support JDK logging in this version of AS.  If you're feeling adventurous, you could try pulling in the jboss-logbridge project, and installing its handler into your JDK logging root logger, and it should port over log messages for you.

 

It should be clear how this works from the source code.  You can check out jboss-logbridge from this link: http://anonsvn.jboss.org/repos/common/jboss-logbridge/tags/1.0.0.GA/

 

It is also in Maven here: https://repository.jboss.org/nexus/content/repositories/releases/org/jboss/logbridge/jboss-logbridge/1.0.0.GA/jboss-logbridge-1.0.0.GA.jar

I have tried unsuccessfully to be adventurous with the logbridge-project:)

Can you give any more hints how to configure jboss to use the LogBridgeHandler instead of the ConsoleHandler? Or have I misunderstood the whole thing?

 

Thanks

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community