Alfred M.
Alfred M.

Reputation: 189

how to create a log file in code igniter?

I'm using code-igniter to develop my php application. I just wanna ask if there is a way I can make a generated error log file everytime the application encounters an error? I'm aware that it has a function of displaying errors on your page however i want to log my errors in a file as well is this possible using CodeIgniter?

Upvotes: 0

Views: 2241

Answers (1)

Alex
Alex

Reputation: 194

I believe you should have an automatic generated error log which is stored in your root folder.

Check for a file called "php_errorlog" or something similar to this.

You can then download it and open it with Notepad or any other editor.

Upvotes: 1

Related Questions