1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-08 14:16:42 +02:00

898 Commits

Author SHA1 Message Date
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
Enleur
faed450d52 Use GELF max length per field and make max length configurable in constructor 2017-04-07 13:49:54 +03:00
Sam-Burns
fa5d07f86f Skipping DateTime microsecond test in PHP 7.1.3, because of https://bugs.php.net/bug.php?id=74258 2017-04-01 21:52:18 +01:00
Benjamin Pentzold
26c7de1e51 map loglevel (int-value) to log-message, as well 2017-03-28 16:04:50 +02:00
Chris Forrence
763c3afb32 Split expectException calls with two parameters into the proper two calls 2017-03-21 10:29:05 -04:00
Chris Forrence
85250d3c72 Replace deprecated setExpectedException methods with expectException 2017-03-21 10:14:16 -04:00
Jordi Boggiano
3266b6e257 Fix test moar 2017-03-20 11:21:06 +01:00
Jordi Boggiano
3c74c7a8d2 Fix tests 2017-03-20 11:12:52 +01:00
Jordi Boggiano
e4774920ff Fix test class 2017-03-20 11:04:39 +01:00
Jordi Boggiano
7405bb5d67 CS fixes 2017-03-20 10:56:47 +01:00
Jordi Boggiano
fb751dff33 Remove return annotations 2017-03-20 10:18:43 +01:00
Jordi Boggiano
c192b1a373 Remove strict types from test suite 2017-03-20 10:15:03 +01:00
Jordi Boggiano
b9256e99b6 Merge branch '1.x' 2017-03-20 10:11:48 +01:00
Jordi Boggiano
3b1f98df2a Fix 5.3 support 2017-03-20 10:07:14 +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
772a470c1a Merge branch '1.x' 2017-03-17 23:01:57 +01:00
Jordi Boggiano
24894709d1 Fix tests 2017-03-17 22:54:56 +01:00
ont
8c40211c3f Fix array syntax for Travis CI 2017-03-15 12:00:44 +07: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
4f0c07af69 Merge branch '1.x' 2017-03-12 18:18:46 +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
Níckolas Daniel da Silva
7dd45ac6bf Improves code coverage (#926)
* 100% coverage on ErrorHandler::codeToString
* 100% coverage on ErrorHandler::registerFatalHandler
* fix typo
* covers ErrorHandler::register() and left conditions on purpose
* 100% coverage on ErrorHandler::registerErrorHandler()
* 100% coverage on ErrorHandler::registerExceptionHandler()
* Checks for possible interface breaking changes
* 100% coverage on ErrorHandler::codeToString
100% coverage on ErrorHandler::registerFatalHandler
covers ErrorHandler::register() and left conditions on purpose
100% coverage on ErrorHandler::registerErrorHandler()
100% coverage on ErrorHandler::registerExceptionHandler()
2017-03-12 17:27:35 +01:00
Guillaume Polaert
908960d30b Logmatic fix (#914)
* Adding the marker field to improve the Logmatic.io compatibilty
2017-03-12 17:13:04 +01:00
Jordi Boggiano
efb3fa354c Merge branch '1.x' 2016-12-16 08:47:02 +01:00
Remon van de Kamp
23c9842285 Remove remaining artifacts from mlehner/gelf-php (#896) 2016-12-13 15:34:52 +01:00
Anton Nizhegorodov
b732364e70 Slack improvements (#894)
- [x] Exclude `extra`/`context`, `datetime`, `level` from message when attachment is used
- [x] Use `ts` attachment key to display `datetime` considering user timezone
- [x] [Support](https://github.com/Seldaek/monolog/pull/846#issuecomment-249528719) custom user images
- [x] [Allow](https://github.com/Seldaek/monolog/pull/894#issuecomment-263532399) to setup username from slack
- [x] [Improve](https://github.com/Seldaek/monolog/pull/846#issuecomment-261529198) array formatting within `context`/`extra`
- [x] [Support](https://github.com/Seldaek/monolog/issues/745) `include_stacktraces` option when attachment is not used and always include stacktraces when attachment is used
- [x] Support `extra`/`context` field exclusion
- [x] Update tests
2016-12-13 15:25:55 +01:00
Jordi Boggiano
5d28746bb0 Fix tests 2016-11-26 01:38:50 +01:00
Jordi Boggiano
f6e6f22e77 Merge branch '1.x' 2016-11-26 01:23:57 +01:00
Haralan Dobrev
9fbc286428 Add unit test for SlackbotHandler 2016-11-19 18:54:46 +02:00
Haralan Dobrev
43e1e69bad Add unit tests for SlackWebhookHandler 2016-11-19 18:54:46 +02:00
Haralan Dobrev
26b526d9fb Do not put empty Slack attachments array by default 2016-11-19 18:54:46 +02:00
Anton Nizhegorodov
5fa5e37305 Fix SlackHandler
Slack API requires to json_encode the attachment field.
2016-11-19 18:53:02 +02:00
Anton Nizhegorodov
d34de6bf30 Fix SlackRecordTest 2016-11-19 18:53:02 +02:00
Anton Nizhegorodov
08b577c657 Update SlackHandler tests && allow SlackRecord formatter change after construction 2016-11-19 18:53:02 +02:00
Anton Nizhegorodov
4ab8ed0a53 Make sure extra/context variables are stringified when more than one level deep 2016-11-19 18:53:01 +02:00
Anton Nizhegorodov
ec75076ded Add more tests to SlackRecordTest
Conflicts:
- tests/Monolog/Handler/Slack/SlackRecordTest.php - merged the tests
2016-11-19 18:53:01 +02:00
Haralan Dobrev
7c2f58e7aa Add initial tests for SlackRecord 2016-11-19 18:53:01 +02:00
Haralan Dobrev
115f6710b1 Use constants for Slack colors 2016-11-19 18:53:00 +02:00
Jordi Boggiano
8f47e12463 Fix PHP7.1 DateTime support 2016-11-17 11:25:45 +01:00
Jordi Boggiano
9a6bf92626 Merge branch '1.x' 2016-11-16 12:16:26 +01:00
Julien Falque
9d43c66cc6 Make protected generic methods public 2016-11-16 12:15:57 +01:00
Jordi Boggiano
4a43d9b17c Fix microseconds support on 7.1, and enable it by default as 7.1 has no perf cost anymore 2016-11-14 11:53:15 +01:00
Jordi Boggiano
9691bde77a Fix UdpSocket tests 2016-11-14 11:49:23 +01:00
Jordi Boggiano
d7febf922c Merge pull request #868 from ComaVN/noop-handler
Added the NoopHandler.
2016-11-13 20:40:29 +01:00
Jordi Boggiano
1dc4cf31e8 Merge branch '1.x' 2016-11-13 20:26:27 +01:00
Jordi Boggiano
b21b465cca Fix Redis test failures 2016-11-13 19:50:36 +01:00
Shawn Iwinski
2dd4a0fa3d Fix tests for sentry/sentry >= 0.16.0 (and < 1.0)
From composer.json: `"sentry/sentry": "^0.13"`
Latest 0.x `sentry/sentry`: 0.22.0

sentry/sentry 0.16.0 changed the function signature of Raven_Client::capture():
0.16.0: `public function capture($data, $stack = null, $vars = null)`
0.15.0: `public function capture($data, $stack, $vars = null)`

While the test suite silently passes with PHP < 7.1, running the test suite with
PHP 7.1 fails with the following error:
`Declaration of Monolog\Handler\MockRavenClient::capture($data, $stack, $vars = NULL)
should be compatible with Raven_Client::capture($data, $stack = NULL, $vars = NULL)`
2016-11-06 11:11:41 -05:00