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

825 Commits

Author SHA1 Message Date
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
Tugdual Saunier
d234839de1 Make the RavenHandler picks the first highest record as main 2016-10-13 09:42:54 +01:00
Roel Harbers
c370308139 removed unused data provider in test 2016-10-12 16:44:30 +02:00
Roel Harbers
7284f7d9dc Added the NoopHandler.
This handler handles anything, but does nothing, and does not stop bubbling to the rest of the stack.

This can be used for testing, or to disable a handler when overriding a configuration without influencing the rest of the stack.
2016-10-12 16:28:10 +02:00
Jordi Boggiano
0d01b2c8c7 Merge branch '1.x' 2016-10-03 20:31:55 +02:00
Jordi Boggiano
214b8ef34b Add total amount of items when aborting traversable normalization 2016-10-03 20:31:30 +02:00
Jordi Boggiano
5ce1c921ad Fix type errors, thanks phan 2016-09-25 22:11:37 +02:00
Jordi Boggiano
bb61bfbe3b When newlines are allowed in LineFormatter, unpack json_encoded blobs containing newlines into multiline strings, fixes #752 2016-09-25 18:22:52 +02:00
Jordi Boggiano
96f4fd718f CS fixes 2016-09-25 17:46:38 +02:00
Jordi Boggiano
941c21b793 Merge branch '1.x' 2016-09-25 17:41:12 +02:00
Jordi Boggiano
40b4891030 Make sure SyslogUdpHandler does not create empty frames where not necessary, fixes #841 2016-09-25 17:30:37 +02:00
Jordi Boggiano
d8dee1cc15 Merge branch '1.x' 2016-09-25 16:48:01 +02:00
Jordi Boggiano
ffc421a4fd Make hg test optional 2016-09-25 16:47:31 +02:00
Jonathan A. Schweder
240b7458dd add MercurialProcessor 2016-09-25 16:39:55 +02:00
Jordi Boggiano
5bbbac0ce9 Maybe now? 2016-09-25 16:29:20 +02:00
Jordi Boggiano
27e439ee41 Fix datetime rounding errors on travis 2016-09-25 16:20:46 +02:00
Jordi Boggiano
28742b656f Undo this LocalSocket fiasco, fix tests for latest phpunit 2016-09-25 16:07:01 +02:00
Jordi Boggiano
3dc7a79a3e Fixing the socket mess, maybe. 2016-09-19 23:14:24 +02:00
Jordi Boggiano
b108200b0b Fix lower tests 2016-09-19 19:02:50 +02:00
Jordi Boggiano
c6a9f28e24 Fix a ton of tests for latest phpunit and turn faked-stream tests into real network tests with a local server 2016-09-19 18:20:42 +02:00
Jordi Boggiano
89683faff3 Fixes microsecond timezone support, fixes #832 2016-09-19 13:24:54 +02:00
Jordi Boggiano
ec945b60d4 Merge branch '1.x' 2016-09-18 18:10:42 +02:00
Nerijus Eimanavičius
5587f6bd3b Refactored JsonFormatter tests to more readable structure 2016-08-28 01:47:20 +03:00
Nerijus Eimanavičius
6586425a31 Better support for PHP7 \Throwable 2016-08-28 00:47:02 +03:00