Jump to content


Photo

Custom errors : error_log not working.


  • Please log in to reply
2 replies to this topic

#1 wyrd33

wyrd33
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 09 March 2006 - 09:37 PM

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.

#2 k.soule

k.soule
  • Members
  • PipPipPip
  • Advanced Member
  • 30 posts
  • LocationIllinois

Posted 10 March 2006 - 01:20 AM

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.

#3 wyrd33

wyrd33
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 10 March 2006 - 05:54 AM

I have that set in my code:
ini_set("log_errors", 1);

Any other ideas?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users