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

1195 Commits

Author SHA1 Message Date
Jordi Boggiano
513e237375 Update docblocks some more 2018-06-08 20:27:50 +02:00
Aerendir
9791cbcda3 Fix #1066: Use correct docblock castings. 2017-11-17 18:11:07 +01:00
Jordi Boggiano
f8248dba5d Merge branch '1.x' 2017-06-19 03:15:19 +02:00
Jordi Boggiano
d6be96bc3c Fix 5.3 support 2017-06-19 03:13:01 +02:00
Jordi Boggiano
69b21064ca Fix level map override when using setExceptionHandler, fixes #1005 2017-06-19 03:09:14 +02:00
Westin Shafer
443e4a94fc Minor code cleanup on Handler/ErrorLogHandler.php (#995)
Just some cleanup for readability.
2017-06-19 02:49:55 +02:00
Jordi Boggiano
1417e2d183 Merge branch '1.x' 2017-06-19 02:16:33 +02:00
Harm Bandstra
4260b46760 SlackWebhookHandler: refactor curl_setopt to curl_setopt_array 2017-06-19 02:13:06 +02:00
Harm Bandstra
52d9096b14 Explicitly set content-type header, and post JSON as body 2017-06-19 02:12:59 +02:00
Alex Rock Ancelet
d84af8db3c Fix SwiftMailerHandler support for Swiftmailer 6.0+ 2017-06-19 01:59:54 +02:00
Jordi Boggiano
6fdf686a02 Use Aws\Sdk instead of Aws\Common\Aws, fixes #969, fixes #977 2017-06-19 01:51:14 +02:00
Jordi Boggiano
357ae23fa4 Tweak HandlerWrapper example in docblock, fixes #991 2017-06-19 01:51:14 +02:00
Douglas Reith
765d225554 Support HeadlessChrome (#966)
* Support HeadlessChrome
2017-06-19 01:47:42 +02:00
Grégoire Pineau
5a041bab8f Use callable typehint where possible + Removed dead code (#996)
* Removed dead code

* Use callable typehint where possible

* Removed PHP5.3 workaround
2017-06-19 01:41:02 +02:00
Elnur Abdurrakhimov
91a0f40927 LogstashFormatter: format context and extra fields as JSON objects (#976)
BC Break
* For Logstash, format context as object instead of individual fields
* For Logstash, format extra as object instead of individual fields
2017-06-19 01:30:53 +02:00
Brant Messenger
1b769912d1 PHP Versions less than 5.3.6 throws undefined constant DEBUG_BACKTRAC… (#986)
* PHP Versions less than 5.3.6 throws undefined constant DEBUG_BACKTRACE_IGNORE_ARGS 

Notice: Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' in /vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php on line 58

* Define DEBUG_BACKTRACE_IGNORE_ARGS if not defined.

* Solution using PHP_VERSION_ID and not defining...

...DEBUG_BACKTRACE_IGNORE_ARGS
2017-06-19 01:16:17 +02:00
Jordi Boggiano
0273c31996 Fix some docblocks, closes #970 2017-06-19 00:58:15 +02:00
Jordi Boggiano
dbd8d31277 Remove old BC 2017-06-19 00:57:55 +02:00
Jordi Boggiano
ca4ffa68f6 Use namespaced phpunit classes, fixes #983 2017-06-19 00:48:54 +02:00
Jordi Boggiano
9ff7540d7a Remove typehints on normalizer formatter to avoid invalid function signatures 2017-06-19 00:35:23 +02:00
Jordi Boggiano
3c1fc70c73 Fix mongodb tests 2017-06-18 23:58:24 +02:00
Jordi Boggiano
b76bc133db Rename level_num to monolog_level, refs #960 2017-06-18 23:58:15 +02:00
Jordi Boggiano
56661027a7 Merge remote-tracking branch 'pupsschluepfer/master' 2017-06-18 23:49:52 +02:00
Jordi Boggiano
2551b8e3eb Merge branch '1.x' 2017-06-18 23:46:31 +02:00
Benjamin Pentzold
1c48ebbf90 Merge remote-tracking branch 'upstream/master' 2017-05-22 12:00:08 +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
Lesnykh Ilia
6696e045df Update JsonFormatter.php 2017-05-03 15:37:25 +03:00
Jordi Boggiano
1b660bbbee Remove constant from constructor 2017-04-10 09:37:23 +02:00
Enleur
faed450d52 Use GELF max length per field and make max length configurable in constructor 2017-04-07 13:49:54 +03:00
Benjamin Pentzold
26c7de1e51 map loglevel (int-value) to log-message, as well 2017-03-28 16:04:50 +02:00
Jordi Boggiano
3c74c7a8d2 Fix tests 2017-03-20 11:12:52 +01:00
Jordi Boggiano
7405bb5d67 CS fixes 2017-03-20 10:56:47 +01:00
Jordi Boggiano
5e3be010d0 Make sure we use \Throwable and not just \Exception 2017-03-20 10:14:03 +01:00
Erik Johansson
81e8bf6189 Add level parameter to payload when reporting Rollbar exceptions (#852) 2017-03-20 10:04:18 +01:00
Erik Johansson
b1b27d8a44 Add level parameter to payload when reporting Rollbar exceptions (#852) 2017-03-19 00:49:00 +01:00
Jordi Boggiano
d9462d50b0 Merge pull request #936 from zerkms/MICRO_OPT_FOREACH_INSTEAD_OF_CURRENT/NEXT
Replaced current/next-style loop with foreach
2017-03-17 23:08:00 +01:00
Jordi Boggiano
59d3df2f38 Add comment note for clarity 2017-03-17 23:07:49 +01:00
Jordi Boggiano
772a470c1a Merge branch '1.x' 2017-03-17 23:01:57 +01:00
Jordi Boggiano
25da38373a Split off work into a new method to facilitate extension, fixes #945 2017-03-17 22:58:02 +01:00
Jordi Boggiano
aeb65fa050 Fix BC break and formatting 2017-03-17 22:52:50 +01:00
ont
aa6e88b6de Complete rfc5424 header for SyslogUdpHandler
WARN: this commit adds backward incompatibility for the SyslogUdpHandler
constructor.
2017-03-15 00:57:06 +07:00
Piers Warmers
a0406bf8dd Handle DateTime objects in formatted messages (#940)
* Handle DateTime objects in formatted meessages

* Use interface to catch both DateTime and DateTimeImmutable

* Maintain formatting standards.

* Visibility to private.
2017-03-14 08:07:57 +01:00
Jordi Boggiano
f3dda67c09 Merge branch '1.x' 2017-03-13 08:08:24 +01:00
Jordi Boggiano
1584a90c48 Fix 5.3 support 2017-03-13 08:02:29 +01:00
Ivan Kurnosov
c411ad174c Changed the "rewind loop condition" operand
The `$handlerKey` might be a slightly more readable choice here
2017-03-13 09:06:46 +13:00
Jordi Boggiano
4f0c07af69 Merge branch '1.x' 2017-03-12 18:18:46 +01:00
Jordi Boggiano
821cc3e4a5 Backport fix for #752, fixes #925 2017-03-12 18:17:37 +01:00
Ivan Kurnosov
f697ec7c96 Move human readable level name resolution in Logger::addRecord() to as late as possible (#934) 2017-03-12 17:51:16 +01:00
Tim Strijdhorst
e6b05c9173 Allow to set custom event_id [LEGACY] (#930)
* +allow to set a custom event_id as an extra parameter instead of letting Raven generate a UUIDv4

* +CS

* +CS

* +verbose array syntax because of PHP 5.3 support
2017-03-12 17:46:54 +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