Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 60598 invoked from network); 3 Dec 2005 22:15:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Dec 2005 22:15:22 -0000 Received: (qmail 23116 invoked by uid 500); 3 Dec 2005 22:15:18 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 23070 invoked by uid 500); 3 Dec 2005 22:15:18 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 23059 invoked by uid 99); 3 Dec 2005 22:15:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Dec 2005 14:15:18 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of janb@mortbay.com designates 209.235.255.182 as permitted sender) Received: from [209.235.255.182] (HELO jetty3.inetu.net) (209.235.255.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Dec 2005 14:15:17 -0800 Received: (qmail 57586 invoked from network); 3 Dec 2005 22:14:55 -0000 Received: from cpe-144-133-196-185.nsw.bigpond.net.au (HELO ?192.168.8.2?) (janb@144.133.196.185) by jetty3.inetu.net with AES256-SHA encrypted SMTP; 3 Dec 2005 22:14:55 -0000 Message-ID: <439218C9.60600@mortbay.com> Date: Sun, 04 Dec 2005 09:14:33 +1100 From: Jan Bartel Reply-To: geronimo-dev@apache.org Organization: Mort Bay Consulting User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: geronimo-dev@apache.org Subject: Re: Jetty Logging: INFO output References: <74e15baa0512022108o6b8278f0y5e514e721f636384@mail.gmail.com> <43914F3D.2030809@mortbay.com> <74e15baa0512030907l769e0a89g1915495323b320fe@mail.gmail.com> <74e15baa0512030945n2e519d79t33a81d59fb92abef@mail.gmail.com> In-Reply-To: <74e15baa0512030945n2e519d79t33a81d59fb92abef@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Aaron, I'm a little confused now. When you used -DDEBUG_VERBOSE on the runline did that change the amount of information that was logged or not? If it *did* suppress a lot of INFO messages, then that indicates that jetty is running with it's own logging mechanism enabled. If it *didn't*, then that indicates that it is running using commons logging and the usual commons logging discovery mechanism. In any case, the easiest thing to do would be for us to give you a new Jetty with the JSR154 servlet log message sent to a different logger (your point #2). Also, your suggestion to prefix the ServletContext log messages with a standard prefix so it can be easily configured in, for eg, log4j is a good one. We will also implement that. The prefix will most likely be "org.mortbay.context". We'll get the release done ASAP, but it would be helpful to know what is the timing for a geronimo 1.0 release? cheers Jan Aaron Mulder wrote: > Further investigation: > > org.mortbay.jetty.servlet.JSR154Filter.init:69 is: > _servletContext.log("JSR154 > unwrappedDispatchSupported="+_unwrappedDispatchSupported); > > and the log call there goes to: > > org.mortbay.jetty.servlet.ServletHandler$Context.log:1134 > > and the log variable there turns out to be initialized like this: > > _contextLog = LogFactory.getLog(getHttpContext().getHttpContextName()); > > So it seems like there are two ways to address this: > > 1) Change ServletHandler.doStart to put a prefix into the context log > name (like "org.mortbay.jetty.contexts."+getHttpContextName() or > something) > > 2) Change JSR154Filter to use a log category of it's own rather than > the servlet context log call, and set the message to DEBUG instead of > INFO. > > The only options from Geronimo seem a little hacky (suppressing any > INFO output where the logger name starts with "/", for example). > > Thanks, > Aaron > > On 12/3/05, Aaron Mulder wrote: > >>OK. I tried: >> >>java -DDEBUG_VERBOSE=-1 -jar target/geronimo-1.0-SNAPSHOT/bin/server.jar -v >> >>and I still get: >> >>11:59:46,130 INFO [/] JSR154 unwrappedDispatchSupported=true >>12:00:03,054 INFO [/console-standard] JSR154 unwrappedDispatchSupported=true >>12:00:04,639 INFO [/console] JSR154 unwrappedDispatchSupported=true >> >>Any suggestions? I'm going to try to track that back to the source. >> >>Thanks, >> Aaron >> >>On 12/3/05, Jan Bartel wrote: >> >>>Aaron, >>> >>>I'm not sure what logging setup you are using with jetty in geronimo. >>>The normal way to surpress the INFO level messages at jetty startup is to >>>set the system property DEBUG_VERBOSE to a negative number on the runline. >>> >>>cheers >>>Jan >>> >>>Aaron Mulder wrote: >>> >>>>I've taken a first stab at reducing our INFO output. One of the >>>>standouts is Jetty, which log various stuff as INFO during startup, >>>>where the logger name is the web context name (/ or /console or >>>>/console-standard, etc.). Is there any chance of getting a Jetty >>>>build in the next few days that emits no INFO output during startup? >>>> >>>>The problem is, since the log categories are literally only "/" or >>>>"/console" or whatever (not AFAICT org.mortbay.jetty./console or >>>>something), we can't easily override those categories to log at only >>>>WARN or higher. I mean, we could do it for the console and the stuff >>>>we ship, but as soon as the user deployed a new web app, there would >>>>be more INFO output again (under their custom context name). I'm >>>>hoping to eliminate INFO output entirely except for stuff like >>>>"Geronimo server started". So it would be great to find a way to >>>>suppress the "context started" INFO messages from Jetty. >>>> >>>>Thanks, >>>> Aaron >>>> >>> >>> >