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
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