Return-Path: Delivered-To: apmail-tcl-rivet-dev-archive@tcl.apache.org Received: (qmail 77735 invoked by uid 500); 19 Jan 2003 20:06:07 -0000 Mailing-List: contact rivet-dev-help@tcl.apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list rivet-dev@tcl.apache.org Received: (qmail 77724 invoked from network); 19 Jan 2003 20:06:06 -0000 To: rivet-dev@tcl.apache.org Subject: Re: Error logging References: From: davidw@dedasys.com (David N. Welton) Date: 19 Jan 2003 12:06:09 -0800 Message-ID: <87bs2cucpa.fsf@dedasys.com> Lines: 53 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Damon Courtney writes: > > Uh... me stupid - I mean stderr, of course:-) > Well, stderr directly goes to error_log, yes, but I was thinking > more of having output to stderr actually be logged in the error_log > using the Apache commands. As it stands now, output to stderr is > just directly spit into the file. By calling the Apache commands to > log errors, we actually get the '[Fri Jan 17 13:50:48 2003] > [notice]' log message with each line. Hrm... I'm undecided. It wouldn't be much larger, but maybe adding a timestamp in Tcl itself would be more Tcl'ish? > *shrug* Just a thought. It works now without any work. 0-] > > I would go for the Itcl thing being a seperate thing, or maybe off > > by default. > We can turn it off by default. Makes no difference to me. 0-] > > But... couldn't this stuff all just go in to begin and end page > > chunks that are installed by default? > Not sure what you mean here. 'Splain, Lucy! if (toplevel && rsc->rivet_after_script) { Tcl_AppendObjToObj(outbuf, Tcl_NewStringObj(rsc->rivet_after_script, -1)); } We could do something like: if (toplevel) { #ifdef DEFAULT_AFTER_SCRIPT rsc->after_script = DEFAULT_AFTER_SCRIPT; #endif if(rsc->after_script) { Tcl_AppendObjToObj(outbuf, Tcl_NewStringObj(rsc->rivet_after_script, -1)); } } Something like that... Let's see what you've got though, so I can see exactly how you've done it:-) I definitely think the file/socket cleanup stuff could be useful. -- David N. Welton Consulting: http://www.dedasys.com/ Personal: http://www.dedasys.com/davidw/ Free Software: http://www.dedasys.com/freesoftware/ Apache Tcl: http://tcl.apache.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org For additional commands, e-mail: rivet-dev-help@tcl.apache.org