Page 1 of 1

disable error_log file

Posted: Thu Mar 08, 2007 3:37 pm
by bojans
Hi!

I have problem with error_log file, because this file become very large file (687086 k). Can I some how disable entrys in this file? Can I simple remove this file?

Thanks!

Bojan

Re: disable error_log file

Posted: Thu Mar 08, 2007 4:27 pm
by calguy1000
Yes, you can remove the file safely, it'll just get recreated as errors occur.

On unix systems we have logrotate, etc. to automatically zip/archive the file when it reaches a certain size, or every so often, and to only keep N copies of the file. 

You can disable error_log as well, but it's not advisable to do this, as it's one of the tools you need when diagnosing problems with modules, user defined tags, etc. 

I'd recommend you not shut it off.

Re: disable error_log file

Posted: Thu Mar 08, 2007 4:43 pm
by bojans
Thanks calguy1000 ! ;)