Welcome Guest, Not a member yet? Register   Sign In
How to Log Error
#1

[eluser]Sudz[/eluser]
Hi buddy,
I want to log all the errors and warning into the file. Instead of showing directly on screen.
How can i do this ?
#2

[eluser]toopay[/eluser]
Extending the core class Exceptions.php, write your custom function which would override show_php_error(), and send the output buffer with fputs() to whatever file intend to use as log.
#3

[eluser]darrentaytay[/eluser]
There are some logs that come with Codeigniter in the applications/logs folder - check those out and see if they meets your requirements.

You can log your own messages with the

Code:
log_message('level', 'message')

function - more information here http://ellislab.com/codeigniter/user-gui...rrors.html

Also, in application/config/config.php starting from around line 165 - there are some config settings for logging.




Theme © iAndrew 2016 - Forum software by © MyBB