You are here: PHP error_log format doesn't include timestamp? « PHP « IT news, forums, messages
PHP error_log format doesn't include timestamp?

Posted by "Lawrence Kennon" on 07/13/05 12:55

In looking at my Apache (2.0.52) error log normal errors have a timestamp
(see below):

[Wed Jul 13 05:36:07 2005] [error] [client 192.168.123.1] File does not
exist: /var/www/thenewagesite/test.html

However PHP generated errors to the Apache error log do not give a
timestamp:

[client 217.212.224.143] PHP Notice: Undefined property: majorver in
/var/www/thenewagesite/jjdewey/immortal/chapter1.php on line 15

Is this something I can configure in the php.ini file (to get timestamps on
PHP errors in the error log)? Note these are _NOT_ errors that I generate
with my code, but errors that PHP is itself sending to the Apache error_log
(due to errors _in_ my code :). This may be in the documentation, but I
haven't been able to find it yet.

Thanks,

Lawrence Kennon
www.theNewAgeSite.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация