[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Re: Custom logger for webapp?
|
Andrew,
There's a new /jetty-centralized-logging/ module that _just_ showed up in trunk that might be relevant to your effort.
Its still pretty early in development, but the goal is to have a central log location for all webapps, regardless of how they are deployed, and regardless of the webapp (and WEB-INF/lib) supported logging implementation.
It currently routes log4j, slf4j, commons-logging, and java.util.logging down to a Centralized Logger implementation.
The jetty-centralized-logger implementation accomplishes this with some careful WebAppClassloader trickery, which makes the server side implementation of (and configuration of) log4j, slf4j, commons-logging, and java.util.logging be chosen over any included implementations (or configurations).
- Joakim
On Tue, Sep 8, 2009 at 1:05 PM, Buchanan, Andrew (YBUSA-KOP)
<Andrew.Buchanan@xxxxxxxxxxxxxx> wrote:
I was still hoping someone may have an answer for this one.
Either way, there is one code update you may want to make.
In the etc/jetty.xml file it says:
<!-- =========================================================== -->
<!-- Configure Request Log -->
<!-- Request logs may be configured for the entire server here, -->
<!-- or they can be configured for a specific web app in a -->
<!-- contexts configuration (see $(jetty.home)/contexts/test.xml -->
<!-- for an example). -->
<!-- =========================================================== -->
However there is no such example in contexts/test.xml.
I looked in source control in the Eclipse svn and it looks like this discrepancy has existed since the code was initially checked in.
Thanks!
Andrew
I'm trying to set up a webapp with its own custom logger in 7.0 per
the instructions at http://docs.codehaus.org/display/JETTY/Logging+Requests
(which are for an earlier release), but it appears that the API has
changed. I get an error in the logs regarding the lack of an
addHandler method (which I've confirmed in the javadocs).
What is the correct way to configure this under 7.0?
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users