Welcome Guest, Not a member yet? Register   Sign In
CI Logging
#1

[eluser]Unknown[/eluser]
I've been Googling on this for a while with no luck. I'd like to have CodeIgniter log directly to the Apache error log file, rather than it's own log files. PHP can certainly do this with the error_log() function. However, CI can't write directly to the Apache log because it's owned by root.

Is there any way to do this?
#2

[eluser]mddd[/eluser]
I think you should extend CI's Log class and change it so it doesn't write to its own log but uses the error_log() function.. not very hard I think. Create a MY_Log library and override the write_log method of the Log class.
#3

[eluser]Unknown[/eluser]
Has anyone successfully extended CI_Log to log errors to the native apache error log, and wishes to share it?
Thankyou.




Theme © iAndrew 2016 - Forum software by © MyBB