Jump to content

PHP Error log format


tidal

Recommended Posts

Hi All,

I use Sun one web Server 6.1 SP6 as my web server and run as FastCGI mode (Web Server error log and PHP error log separates under FCGI Mode). In php.ini, I set the location of php error log file to:

error_log = "/i03_01/SUNWeb/https-www/logs/errors_php"

The following is my error logs (I use symbolic link to link the web content, therefore, the path of error file show as relative path):

[19-Dec-2006 18:07:19] PHP Warning:  mysql_connect(): Can't connect to MySQL server on 'hkpu42' (145) in ../connections/connect_hotnews.inc on line 2
[19-Dec-2006 18:07:19] PHP Warning:  mysql_query(): supplied argument is not a valid MySQL-Link resource in ./inc/get_all_data_e.inc on line 7
[19-Dec-2006 18:07:19] PHP Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in ./inc/get_all_data_e.inc on line 8

Can i change the relative path to [b]absolute path?[/b]

The following is my desired error logs:

[19-Dec-2006 18:07:19] PHP Warning:  mysql_connect(): Can't connect to MySQL server on 'hkpu42' (145) in [b]/usr/web/connections/connect_hotnews.inc[/b] on line 2
[19-Dec-2006 18:07:19] PHP Warning:  mysql_query(): supplied argument is not a valid MySQL-Link resource in [b]/usr/web/inc/get_all_data_e.inc[/b] on line 7
[19-Dec-2006 18:07:19] PHP Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in [b]/usr/web/inc/get_all_data_e.inc[/b] on line 8

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/31215-php-error-log-format/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.