Jump to content

Custom errors : error_log not working.


wyrd33

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.
Link to comment
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.