error('Uncaught ' . get_class($e) . ': ' . $e->getMessage() . ' at ' . $e->getFile() . '(' . $e->getLine() . ')'); logger()->error($e->getTraceAsString()); logger()->critical('You can report this exception to static-php-cli GitHub repo.'); } }