Re: Timestamp needed in error log

From: Date: Sat, 08 Apr 2006 19:38:41 +0000
Subject: Re: Timestamp needed in error log
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-233576@lists.php.net to get a copy of this message
quoth the John Hicks: > I would like to configure my PHP 4.3 to include a timestamp in its error > messages. > > It appears that PHP defaults to no timestamp. I can't a find a directive > that allows me to configure this. > > Do I have to recompile? > > I've never looked at the source before. Any pointers on where I should > look for the error message generation? > > I posted a similar query a week ago and got no response. > > Any response would be appreciated: > > --Does anyone have a PHP that is configured with a timestamped error log? > > --Is there a reason not to have a timestamp? > > --Would you, like me, like to have the date and time in the error messages? > > Thanks, > > John Hicks You don't explain much about your setup here, but on mine, I just write my errors to the apache error log, which provides its own timestamp. Another option is to log to the system logs: error_log = syslog # in php.ini and use your loggers filter facilities to keep the php messages in a separate file. Again, here syslog will provide its own timestamp. -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972

Attachment: [application/pgp-signature]
« previous php.general (#233576) next »