Jordi Boggiano
ce293c745a
Do not assume we have a Logger in ErrorHandler, fixes #666
2015-10-14 13:47:31 +01:00
Jordi Boggiano
837f437b4c
Avoid logging fatal errors twice when both error and fatal error handlers are present, fixes #622
2015-08-09 18:16:16 +01:00
Jordi Boggiano
2525053e8e
Close handlers that can be closed after logging a fatal errors, refs #621
2015-08-09 17:29:54 +01:00
Jordi Boggiano
b941eac988
Improve php7 compat (Throwable is the new base type for all exceptions, so Exception is not wide enough)
2015-07-12 11:55:11 +01:00
Jordi Boggiano
6d9062594c
Exit with correct code after handling an uncaught exception, fixes #592
2015-07-12 11:36:03 +01:00
Hany el-Kerdany
466057c797
Add 'code', 'message' to ErrorHandler log context.
...
Passed the 'code' and 'message' from the original error/fatal-error
to the context of ErrorHandler log record(s).
This will help writers of Handlers to save structured information about
errors/fatal-errors. (e.g. Useful for a "DatabaseHandler").
2014-07-25 10:36:35 +02:00
Patrick Forget
694fbb5923
updated message to include even more useful information
...
This was suggested by @kostiklv on github
2014-04-11 18:30:07 -04:00
Patrick Forget
4a5a150d92
When handling exception log exception message rather generic message
2014-04-10 13:29:11 -04:00
David Neilsen
b66237f825
Also prevent throwing another exception in the case that the exception logger level is not set.
...
Also prevent throwing another exception in the case that the exception logger level is not set.
2013-11-14 15:34:27 +13:00
David Neilsen
5434f3f73d
Prevent throwing an exception in the case that the fatal error level is not set.
2013-11-14 15:14:00 +13:00
Jordi Boggiano
b33357d16b
Use array_replace instead of manually looping through items
2013-07-30 13:01:58 +02:00
Jordi Boggiano
4277c5db4a
CS fixes
2013-07-29 00:08:51 +02:00
Jordi Boggiano
fc244c0084
Make the ErrorLogger work with any logger interface object
2013-07-28 22:30:26 +02:00
Jordi Boggiano
01e1ee7541
Add tests and fix issue with array_merge
2013-07-28 21:16:34 +02:00
Jordi Boggiano
cb47b537f3
Fix feedback
2013-07-28 20:35:20 +02:00
Jordi Boggiano
fdd45cc6bc
Add error handler, fixes #199
2013-07-28 19:50:36 +02:00