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.
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.