Re: java.util.logging and log4j on same application

2007-10-24 Thread Paul Smith
ah, I forget about the other bit of code you need. Place this somewhere before you initialize log4j: private final Object repositorySelectorGuard = new Object(); final LoggerRepository repositoryExImpl = new LoggerRepositoryExImpl(LogManager .getLoggerRepository()); ...

Re: java.util.logging and log4j on same application

2007-10-24 Thread David R Robison
I've set things up as specified on the site using the log4j.xml configuration: was placed after the appender definitions. However, I get a warning "Unrecognized Element plugin" when processing the configuration. Any thoughts on what may be causing this since the format seems to match up w

Re: java.util.logging and log4j on same application

2007-10-23 Thread Paul Smith
On 24/10/2007, at 1:53 AM, Curt Arnold wrote: On Oct 23, 2007, at 8:22 AM, David R Robison wrote: We have an application that uses log4j as its logger. However, it uses a third-party library that uses java.util.logging. Is it possible to get the java.util.logging logger to log through log

Re: java.util.logging and log4j on same application

2007-10-23 Thread Curt Arnold
On Oct 23, 2007, at 8:22 AM, David R Robison wrote: We have an application that uses log4j as its logger. However, it uses a third-party library that uses java.util.logging. Is it possible to get the java.util.logging logger to log through log4j? Thanks, David Robison Please look throug

Re: java.util.logging and log4j on same application

2007-10-23 Thread Matthew Kemp
I'm not super familiar with the java.util.logging but java.util.logging.Handler is roughly equivalent to org.apache.log4j.Appender. One option would be to create a custom Handler that repackages the java.util.logging.LogRecord as a org.apache.log4j.LoggingEvent. This seems like something that would