Community

java.util.logging to Log4j mapping

reply from David Lloyd in Beginner's Corner - View the full discussion

Alexandre Mendonça wrote:

 

Hi all,

I'm having an issue when using java.util.logging.Logger, the output gets into ERROR level and into STDERR making it look like an error message.  [...]

 

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

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community