Redirecting PHP Errors to Docker Console or Linux Console

Tiempo de lectura: 2 minutos Today we’re going to learn how to create a handler to redirect PHP errors to the Linux or Docker console. The first thing we need to do is to create a handler, we can call it exception_handler.php. And let’s add the following: <?php function manejarExcepcion($excepcion) { // Obtener información sobre la excepción $mensaje = ‘ERR: … Read more