[jboss-dev-forums] [Design the new POJO MicroContainer] - java.util.logging Bridge Component
david.lloyd@jboss.com
do-not-reply at jboss.com
Fri Nov 7 01:35:36 EST 2008
I dusted off and fixed up two small yet related projects I've had lying around forever.
The first is a substitute java.util.logging LogManager that fixes about 10 zillion bugs, and is all-around much better-behaved (not to mention far simpler) than the default JDK implementation.
The second is a deployable java.util.logging Handler JAR that forwards j.u.l LogRecords to log4j.
The upshot of this thing is, two tiny JARs and you're able to see all j.u.l messages mapped in properly with the regular server log, without having to rearchitecht the whole logging system. While I was hoping to uncover the secrets of the universe, unfortunately on a stock 5.0.0.CR2 startup, the only extra stuff printed was a couple RMI messages. Oh well.
The logmanager source is here (the resultant classes must be on the boot classpath, and the -Djava.util.logging.manager system property must point at the org.jboss.logmanager.LogManager class): http://anonsvn.jboss.org/repos/sandbox/david.lloyd/jboss-logmanager/trunk
The logbridge deployable is here (make a JAR and stick it in deployers/ to get early logs, or deploy/ if you don't care about that stuff): http://anonsvn.jboss.org/repos/sandbox/david.lloyd/jboss-logbridge/trunk/
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187587#4187587
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187587
More information about the jboss-dev-forums
mailing list