|Re: [jetty-users] Debug-level logging|
On 04/28/2011 10:12 AM, Mark Payne wrote: > Can anyone tell me what I need to do? For embedded Jetty, I use org.eclipse.jetty.util.log.Log.setLog() to explicitly set the logger, before creating the jetty Server instance. There are several logger classes available in that package that you can pass to Log.setLog, one is for java.util.logging, another for slf4j, and another that just prints to stderr (respectively: JavaUtilLog, Slf4jLog, and StdErrLog). The javadoc for these classes is not very helpful, better to read the source. They are very simple classes. I ended up making my own logger facade class that plays nice with the established use of java.util.logging in the rest of my application.
Back to the top