Application logging
Posted: Sat Aug 02, 2008 10:06 pm
I would like to direct all application errors to a log file, /home/mysite.com/logs/myapp_log and prevent them display to the standard output (screen) so I do this:
It still displays to the standard out and not to the file. Did I do it wrongly?
Thanks,
ngungo
Code: Select all
error_reporting(E_ALL | E_STRICT);
ini_set("display_errors", "Off");
ini_set("log_errors", "On");
ini_set("error_log", "/home/mysite.com/logs/myapp_log");
Thanks,
ngungo