search

How to do error logging in codeigniter?

Comments:
Likes:
Shares:
Best Division

Best Division  @bestdivision

Published On - Last Updated -

codeigniter

application

config

config.php

This change will log any errors which occurs by any users using our website. It is a good  practice to log errors on production because it gives us an idea of what errors is occuring on our website.

Details of other alternatives options : -

  • 1 :- It will log errors only.
  • 2 :- It will log debugger message along with errors.
  • 3 :- It will log informational messages.
  • 4 :- It will log all messages.

It is a good practice to just log errors only. Or it will fill up the spaces too quickly as logging size will become bigger if we log all messages. So, Just stick to 1st option only.

Where it is logged ?

It is logged in application -> logs folder

How it is logged?

Whenever a page from you website is loaded which contains any errors ( like:- fetching any data from database , or any error while loading images..etc. ) then an error will be logged on your logs folder. Later whenever you get time you can check those logs and fix the problems.

Similar Blogs
0 Commentssort Sort By

@abcd 1 days ago

Aquí los que apoyamos a Los del limit desde sus inicios..

dislike
reply
sdfsdf