-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI/Oil capture the last error on shutdown Event #75
Comments
|
it's not enough, I need to centralize errors (at least simple as returned
executing How I can get all errors (or at least the fatal) in this event:? |
You can't. There is no PHP method to retrieve the last exception. The proper way of doing this, is to make a Monolog handler and attach it to the log instance. |
OK, I want to extends \Core\Log for 1.8 and rewrite logger method for 1.5 version. Thanks |
Not sure you need to.If you get |
Hi,
I can't capture a last error when execute refine command on oil.
in bootstrap.php
In all of cases $e is empty when create an Exception on script.
It's possible capture the last error on oil -> refine call for logging?
Thanks
The text was updated successfully, but these errors were encountered: