1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 00:56:08 +02:00
Commit Graph

39 Commits

Author SHA1 Message Date
Jordi Boggiano
71afce5df7 Merge branch '1.x' 2018-06-18 11:34:19 +02:00
Jordi Boggiano
7ef89ec7c6 Merge pull request #1106 from hinrik/status_500_exception
Set HTTP response code to 500 in case of exceptions
2018-06-17 16:06:06 +02:00
Jordi Boggiano
513e237375 Update docblocks some more 2018-06-08 20:27:50 +02:00
Hinrik Örn Sigurðsson
86d0984517 Set HTTP response code to 500 in case of exceptions
Resolves Seldaek/monolog#1096.
2018-01-26 14:04:19 +01:00
Damian Mooyman
2d9c905b76 ENHANCEMENT Ensure 'trace' is captured for non-exceptions
Fixes #693
2018-01-15 10:42:24 +13:00
Aerendir
9791cbcda3 Fix #1066: Use correct docblock castings. 2017-11-17 18:11:07 +01:00
Jordi Boggiano
69b21064ca Fix level map override when using setExceptionHandler, fixes #1005 2017-06-19 03:09:14 +02:00
Lesnykh Ilia
e5ff7eb074 Use coalesce operator (#982)
* Use coalesce operator

* Use coalesce operator

* Use coalesce operator

* Use coalesce operator
2017-05-08 11:13:42 +02:00
Jordi Boggiano
4f0c07af69 Merge branch '1.x' 2017-03-12 18:18:46 +01:00
fabriceparallel
cc5f1eb34d Php5.3 autoload errors (#929)
* make ErrorHandler extends LogLevel to avoid autoloading issue when error is triggered on compile

* Revert "make ErrorHandler extends LogLevel to avoid autoloading issue when error is triggered on compile"

This reverts commit 8140f6026f.

* call class_exists with force autoload set to true, to force the autoload of LogLevel on registration of the handlers
2017-03-12 17:42:12 +01:00
Jordi Boggiano
5ce1c921ad Fix type errors, thanks phan 2016-09-25 22:11:37 +02:00
Jordi Boggiano
6e6586257d Add scalar types to processor/formatters and top level classes 2016-09-25 21:23:35 +02:00
Jordi Boggiano
cc1fe9fa91 Merge branch '1.x' 2016-07-29 05:25:24 +02:00
Adam Kiss
3419d21669 Added option to log errors regardless of error_reporting setting 2016-07-29 05:22:42 +02:00
Jordi Boggiano
0defb2665b Revert #810 and remove the context info in the php error logger of ErrorHandler, fixes #828, closes #810 2016-07-29 05:08:45 +02:00
Jordi Boggiano
b909ca1e02 Merge branch '1.x' 2016-07-02 15:03:11 +01:00
Jordi Boggiano
55841909e2 Undo accidental linebreak 2016-07-02 15:02:10 +01:00
s4msung
d9be260f3d include $context in error_handler 2016-07-02 14:43:33 +01:00
Jordi Boggiano
21dde4dedb Move to strict mode and fix tests 2016-05-27 13:44:00 +01:00
Jordi Boggiano
f200e79879 CS fixes 2016-05-26 20:54:06 +01:00
Jordi Boggiano
6d2cfa63c9 Add support for custom logging level per exception class, and set ParseError to be CRITICAL 2016-05-20 20:45:16 +01:00
Jordi Boggiano
f1091c3b97 CS fixes 2016-03-01 18:12:45 +00:00
Jordi Boggiano
906bc0e6a2 All handlers are closeable now 2015-12-18 17:48:44 +00:00
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