[jboss-user] [Beginner's Corner] - java.util.logging to Log4j mapping

David Lloyd do-not-reply at jboss.com
Thu May 27 10:56:39 EDT 2010


David Lloyd [http://community.jboss.org/people/david.lloyd%40jboss.com] replied to the discussion

"java.util.logging to Log4j mapping"

To view the discussion, visit: http://community.jboss.org/message/545139#545139

--------------------------------------------------------------
> 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/ 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 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
[http://community.jboss.org/message/545139#545139]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100527/a5ab898e/attachment.html 


More information about the jboss-user mailing list