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

417 Commits

Author SHA1 Message Date
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
5ce1c921ad Fix type errors, thanks phan 2016-09-25 22:11:37 +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
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
6b0d0c4a19 Merge branch '1.x' 2016-07-29 04:53:49 +02:00
Jordi Boggiano
ced9284123 Fix tests 2016-07-29 04:51:33 +02:00
Jordi Boggiano
9b5bf2cca7 Allow formatting of message by setting a line formatter on SlackHandler, fixes #829 2016-07-29 04:20:18 +02:00
Jordi Boggiano
f952c6b5c9 Merge branch '1.x', fixes #771 2016-07-29 04:09:04 +02:00
Remon van de Kamp
49d64e1dd5 Allow alternative date separators for RotatingFileHandler
Currently only dashes are allowed in date formats (i.e., "Y-m-d").
This commit also allows slashes, underscores and dots to be used instead
of only dashes for more flexibility.
2016-07-14 21:01:35 +02:00
Jordi Boggiano
f16e67d523 CS fixes 2016-07-02 15:12:25 +01:00
Jordi Boggiano
a36b099646 Merge remote-tracking branch 'JulienBreux/feature/logmatic' 2016-07-02 15:05:16 +01:00
Jordi Boggiano
b909ca1e02 Merge branch '1.x' 2016-07-02 15:03:11 +01:00
Jordi Boggiano
69fb2aa1c1 Fix GroupHandler::handleBatch when the handler has processors, fixes #814 2016-07-02 14:48:22 +01:00
Julien Breux
996f420205 Add Logmatic.io 2016-06-28 18:07:18 +02:00
Jordi Boggiano
992a1a20a0 Fix method case 2016-05-27 14:35:15 +01:00
Jordi Boggiano
baa7471cb5 More amqp fixes 2016-05-27 14:28:25 +01:00
Jordi Boggiano
21dde4dedb Move to strict mode and fix tests 2016-05-27 13:44:00 +01:00
Jordi Boggiano
8a45ed75cc Auto-detecting of mime type for emails and switched to HtmlFormatter for emails by default, fixes #577 2016-05-26 22:41:41 +01:00
Jordi Boggiano
af7c0a7bda Make handlers more serializable by default by having them close() before sleeping, fixes #365 2016-05-26 21:13:52 +01:00
Jordi Boggiano
f200e79879 CS fixes 2016-05-26 20:54:06 +01:00
Jordi Boggiano
2ff7afda31 Change the way objects are normalized to avoid multi-levels of json encoding, fixes #560 2016-05-26 19:21:47 +01:00
Jordi Boggiano
3d7842ec1e Coding style fixes, refs #720 2016-05-26 18:16:46 +01:00
Jordi Boggiano
8a379a3166 Merge remote-tracking branch 'ArSn/master' 2016-05-26 18:14:26 +01:00
Jordi Boggiano
76a91c6722 Set default date format to have a timezone, fixes #196 2016-05-26 18:04:51 +01:00
Jordi Boggiano
e27225dc40 Switch to DateTimeImmutable everywhere 2016-05-20 20:55:31 +01:00
Jordi Boggiano
cb479a9b18 Remove HipChat API v1 support 2016-05-20 20:24:02 +01:00
Jordi Boggiano
d7b415c2c8 Make TestCase class available to dependents to help with testing 2016-05-20 20:09:02 +01:00
Jordi Boggiano
f19fffe870 Merge remote-tracking branch 'rpkamp/master' 2016-05-20 19:43:01 +01:00
Jordi Boggiano
3eee2a006b Merge branch '1.x' 2016-05-20 19:40:36 +01:00
Michael Moussa
09c4cca32b Fix NewRelicHandler error when using LineFormatter 2016-05-20 19:31:17 +01:00
Remon van de Kamp
83a24937ba Add deprecation errors on RotatingFileHandler (#774)
* Add deprecation errors when attempting to set dateFormats of fileFormats that
break the possibility of rotating easily in RotatingFileHandler. Version 2.x
of Monolog will throw `\InvalidArgumentException`s in these cases.
2016-05-20 19:13:19 +01:00
Remon van de Kamp
1841e2ba88 Lock down RotateFileHandler to prevent errors with rotation
- Require the dateFormat to be one of three presets ('Y-m-d', 'Y-m' or 'Y') to
  ensure that dates can be sorted lexographically
- Require the filenameFormat to contain the (sub)string `{date}` so we will
  actually create new files instead of the same file over and over again.
2016-04-18 21:51:37 +02:00
Nils Adermann
e7c326782f FingersCrossed: Adapt test for extraction of activate from handle() 2016-04-15 14:11:04 -04:00
Nils Adermann
e0b521ba53 Add a test that verifies manual overriding of activation strategy works 2016-04-14 17:02:29 -04:00
Jeroen Thora
dbccc56a44 Removed substr call in amqp routing key generator 2016-04-14 12:54:01 +02:00