Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 58096 invoked from network); 28 Aug 2002 12:15:10 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 28 Aug 2002 12:15:10 -0000 Received: (qmail 9144 invoked by uid 97); 28 Aug 2002 12:15:34 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 9096 invoked by uid 97); 28 Aug 2002 12:15:33 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 9084 invoked by uid 98); 28 Aug 2002 12:15:33 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3D6CBEC2.8050900@apache.org> Date: Wed, 28 Aug 2002 14:14:58 +0200 From: Remy Maucherat Organization: ASF User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core StandardContext.java References: <20020826121559.73211.qmail@icarus.apache.org> <3D6C9F52.5020008@apache.org> <3D6CBD68.9060304@mail.more.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: localhost.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Glenn Nielsen wrote: > Remy Maucherat wrote: > >> glenn@apache.org wrote: >> >>> glenn 2002/08/26 05:15:59 >>> >>> Modified: catalina/src/share/org/apache/catalina/connector >>> RequestBase.java >>> catalina/src/share/org/apache/catalina/core >>> StandardContext.java >>> Log: >>> Fix for BUG 11947. Change where startCapture/stopCapture is >>> invoked to >>> prevent memory leaks from the SystemLogHandler. >> >> >> >> I'd like log swallowing to be optional and disabled by default. It >> will confuse users too much otherwise (they're used to using Sys.out >> to debug). >> It is also not a good idea to pay the performance cost when the >> feature is not needed IMO. >> >> I plan to add a "swallowOutput" flag to StandardContext, with its >> default to false. >> >> Remy >> > > I do think the feature is needed, especially for production systems. > > Many API's used by a web application don't know they are being used in a > web > application and have no access to the servlet context log, they use stderr > and stdout. It is very confusing during production if errors generated by > these API's are put in catalina.out and other errors are in the Context > log. > Putting all the stdout/stderr output for a web app into one log makes it > easier > to debug a problem. Also, when the output goes to catalina.out there > are no > timestamps which makes it difficult to correlate output in catalina.out > with > the context log. > > For me, debugging is easier if everything related to a webapp is in the > same log, > and with timestamps. > > This is just a change in behaviour, I don't see a problem with having it > enabled > by default as long as it is documented. > > -0 for adding the flag > -1 for setting default behaviour to disable putting stderr/stdout in the > context log. Most Tomcat users are developers, and do not care about your "production" ready feature. IMO system administrators will have to tweak their Tomcat installation, no matter what we do. OTOH, casual developers are going to be deeply confused and annoyed by the feature. I'm not happy with the patch you committed yesterday, and which forced redirection (at the cost of adding two synced hashtable operations in the critical path). So -1 for the patch you committed yesterday. (I think the code I just committed is an acceptable compromise, so I'd appreciate it if you retracted your veto; if you don't, we'll have to revert the last 2 StandardContext commits) Remy -- To unsubscribe, e-mail: For additional commands, e-mail: