Jump to content

Archived

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

wyrd33

Custom errors : error_log not working.

Recommended Posts

I want to display debug information in my cpanel's log file (the default log file where all of my PHP errors display). However, error_log() doesn't seem to want to work.

This is what I have:
error_log("test", 0);

Thoughts? Thanks.

Share this post


Link to post
Share on other sites
You may want to verify that error logging is enabled in the PHP.ini, specifically ' log_errors = On '; you can determine if it is on or not with phpinfo(), it is off by default. The 0 on the end is redudant, unless you are alternating the method of logging, system logged is the default behavior.

Share this post


Link to post
Share on other sites

×

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.