Welcome Guest, Not a member yet? Register   Sign In
Redirect Log Messages to Virtualhost Log File

Hi Everyone,

PHP errors are by default saved in our Apache virtual host error log. Outside of codeigniter this works fine. Inside of codeigniter it will only write to its own log directory. I cannot even specify the log file as code igniter will only write to a log directory and that is not what I'm looking for. Is there anyway to get around this? I want to keep my php errors in my virtualhost logs just like my other apps.

Also I had to set the error_reporting to 0 to stop the displaying of errors as setting display_errors to 0 did not work.

I tried adding the following in my config:

| By default CI runs with error reporting set to ALL.  For security
| reasons you are encouraged to change this when your site goes live.
| For more info visit:  http://www.php.net/error_reporting
    ini_set('display_errors', '0');
    ini_set('log_errors', '1');
    ini_set('error_log', '');

Other than these issues, Codeigniter is working out great!

- Vince

Theme © iAndrew 2016 - Forum software by © MyBB