Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 30727 invoked from network); 3 Dec 2007 18:19:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2007 18:19:38 -0000 Received: (qmail 92178 invoked by uid 500); 3 Dec 2007 18:19:20 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 92136 invoked by uid 500); 3 Dec 2007 18:19:20 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 92125 invoked by uid 99); 3 Dec 2007 18:19:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 10:19:20 -0800 X-ASF-Spam-Status: No, hits=3.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 72.17.152.164 is neither permitted nor denied by domain of wltjr@gentoo.org) Received: from [72.17.152.164] (HELO mail.obsidian-studios.com) (72.17.152.164) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 18:19:00 +0000 Received: (qmail 29457 invoked from network); 3 Dec 2007 18:19:03 -0000 Received: from mail.obsidian-studios.com (HELO ?192.168.1.211?) (192.168.0.51) by mail.obsidian-studios.com with SMTP; 3 Dec 2007 18:19:03 -0000 Received: from [192.168.1.211] ([192.168.1.211] helo=[192.168.1.211]) by assp.obsidian-studios.com; 3 Dec 2007 13:19:03 -0500 Subject: Re: Bootstrap redirecting stdout/err via system.set From: "William L. Thomson Jr." To: Tomcat Developers List In-Reply-To: <474DA531.3080405@gmail.com> References: <1196217871.10574.8.camel@wlt.obsidian-studios.com> <474D26EF.9000203@gmail.com> <1196261250.21871.20.camel@wlt.obsidian-studios.com> <474DA531.3080405@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-vJd2Yi4nCjM2WOlvsV5k" Organization: Gentoo Date: Mon, 03 Dec 2007 13:19:01 -0500 Message-Id: <1196705941.12133.4.camel@wlt.obsidian-studios.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 X-Virus-Checked: Checked by ClamAV on apache.org --=-vJd2Yi4nCjM2WOlvsV5k Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2007-11-28 at 18:28 +0100, jean-frederic clere wrote: > William L. Thomson Jr. wrote: > > > >=20 > > But I believe the argument is that applications should do their own > > stderr/out redirection and not to it external of the app. As in not via > > bash/shell redirection and sending that to a log file. The app should b= e > > doing that internally. >=20 > That is what daemon is doing. Was that referring to an external daemon, as in jsvc, or the Daemon as part of the class that is called in Bootstrap and responsible for starting Tomcat? Seems odd no one has commented on this so far. Unless it's due to ignorance on my behalf. I am not that familiar with Tomcat source code, or internals on starting and etc. Slowly tracing things down there. So please excuse my lack of knowledge or ignorance there. Now I noticed several classes including Embedded make a System.setErr call. If any of those are invoked as part of Boostrap starting, no clue atm. But seems like if that logic exists in other place. If Boostrap or something it called, invokes doesn't set that. Then it makes a good case that it should be set. Since it's set when Tomcat is started via other means. I have since switched my own apps over to this. It's quite nice and provides me a way to catch what otherwise might have been uncaught exceptions. Via logging them to a file that I have redirected stderr and stdout to. --=20 William L. Thomson Jr. Gentoo/Java --=-vJd2Yi4nCjM2WOlvsV5k Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHVEiVPrChP8zZLyYRAst+AKDvc7Fv1BmQaOPbRtbVA+NKs57ieACg4IGO 425/MO8RXuRRSjsYT8rwVSM= =EfmN -----END PGP SIGNATURE----- --=-vJd2Yi4nCjM2WOlvsV5k--