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.
- 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.
It is logged in application -> logs folder
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.