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

[eluser]jdav3579[/eluser]
Hi,
I am coding an XML-RPC server, if I write an error on the page all I get from my client is a message saying that the xml returned was not valid. That is because I get a PHP error message.
Is there a way of getting code igniter just in general to log any error messages to a file.
I have seen code that if it comes across certain errors it will log them, but I want it to log all errors to a file.
Thanks for any help.

John
#2

[eluser]rogierb[/eluser]
Read the section about Error Handling in the user guide. You can use this to write errors to the logfile.
Don't forget to set the loglevel in the config :-)
#3

[eluser]jdav3579[/eluser]
Thanks! I have been playing around with it all morning, trying to figure out what was happening. It was a CHMOD problem on the error logging folder I was writing to!
Thanks for your help anyway




Theme © iAndrew 2016 - Forum software by © MyBB