I'm coming from the hustle of this ask here .
Is there any way in the production environment, when an error occurs I warn you, that the error occurred and that I should look at the log file?
I wanted it to appear on the screen something like this when an error occurs: Ocorreu um erro, verifique o arquivo de log do sistema
.
Remembering that I come from the above question, so in case the production environment does not display errors, I just save them to a log file.