cgi_error_log_philosophy

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



From: Bill Moseley <usenet@hank.org>
Subject: Re: Apache Notify When Error Log Messages Appear
Newsgroups: comp.infosystems.www.servers.unix
Date: Fri, 4 Aug 2000 06:14:10 -0700
Organization: SBC Internet Services
Path: rQdQ!sn-xit-01!supernews.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dca1-hub1.news.digex.net!intermedia!cyclone-sf.pbi.net!206.13.28.143!news.pacbell.net.POSTED!not-for-mail
Message-ID: <MPG.13f46181e258a1e39896a1@news.pacbell.net>
References: <8m996f$p5l$1@nnrp1.deja.com> <MPG.13f1d6cd332e1f9d98969a@news.pacbell.net> <8mc6f2$5b$1@nnrp1.deja.com> <MPG.13f3a7fa80c858989896dc@mardy> <8mee84$ku1$1@nnrp1.deja.com>
X-Newsreader: MicroPlanet Gravity v2.20
Lines: 34
NNTP-Posting-Host: 63.205.225.170
X-Complaints-To: abuse@pacbell.net
X-Trace: news.pacbell.net 965394966 63.205.225.170 (Fri, 04 Aug 2000 06:16:06 PDT)
NNTP-Posting-Date: Fri, 04 Aug 2000 06:16:06 PDT
Xref: rQdQ comp.infosystems.www.servers.unix:81172










criecke_cxtec_com@my-deja.com wrote:

> Bill Moseley <usenet@hank.org> wrote:

> > Huh?!?  Which Apache are you using that doesn't write a
> > timestamp to the error_log?  You might want to check
> > that again.

> It kind of depends.  When Apache writes something to standard error, it
> time stamps it.  But when a CGI program writes something, it does not.


Only poorly written CGI scripts would not. ;)

In perl you have a few friends:
 $SIG{__DIE__}
 $SIG{__WARN__}

I'd rather use my own log files in CGIs instead of Apache's.

> Ah well.  Sounds like the cron job route is the way to go.  Thanks Bill!

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu