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
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
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
Julien Falque
9d43c66cc6
Make protected generic methods public
2016-11-16 12:15:57 +01:00
Tugdual Saunier
d234839de1
Make the RavenHandler picks the first highest record as main
2016-10-13 09:42:54 +01:00
Jordi Boggiano
214b8ef34b
Add total amount of items when aborting traversable normalization
2016-10-03 20:31:30 +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
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
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
Jordi Boggiano
ced9284123
Fix tests
2016-07-29 04:51:33 +02:00
Jordi Boggiano
5052fe7b1f
Merge remote-tracking branch 'francisbesset/feat-soapfault' into 1.x
2016-07-29 04:47:55 +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
Francis Besset
8b1f522206
Added informations to normalize a SoapFault
2016-07-20 15:18:11 +02:00
Jordi Boggiano
69fb2aa1c1
Fix GroupHandler::handleBatch when the handler has processors, fixes #814
2016-07-02 14:48:22 +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
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
Jordi Boggiano
f56f2969f7
Fix handling of messages with new lines
2016-04-12 19:17:42 +01:00
Jordi Boggiano
0e3a4bf48b
Fix bug when messages contain colons
2016-04-12 19:02:03 +01:00
Jordi Boggiano
a754edc64c
Add ability to use formatter in email subject lines
2016-04-12 18:31:25 +01:00
Jordi Boggiano
1fa91efc3b
Add DeduplicationHandler to avoid spamming the same log records over and over
2016-04-12 18:31:22 +01:00
Jordi Boggiano
a7ade9d68f
Only close handles that have been opened by the StreamHandler, fixes #764
2016-04-10 13:01:10 +01:00
Jordi Boggiano
ccdc8b530c
Truncate single messages if they go over the hipchat limit, fixes #629
2016-04-10 12:31:41 +01:00
Christian Flothmann
b437bb928a
fix Gelf message formatter tests
...
Version 1.4.1 is the last version compatible with PHP < 5.3.9, but
filtered all message attributes with zero string length.
2016-04-05 15:51:16 +02:00
Jordi Boggiano
6bc1a444db
Truncate messages if they reach the max length of GELF messages, fixes #751
2016-04-02 13:53:47 +01:00
Jordi Boggiano
a9ccae25cb
Fix elastica formatter test, refs #742
2016-03-13 16:20:24 +00:00
Malte Blättermann
9ef18f111f
Added millis
2016-03-13 16:18:47 +00:00
Jean-Baptiste Nahan
50241e6ced
Update AmqpHandlerTest.php
2016-03-13 16:05:23 +00:00
Jordi Boggiano
81045d5974
Fix tests
2016-03-09 11:43:02 +00:00
Jordi Boggiano
25131bb5f6
Add context.* replacement in line formatter, fixes #717
2016-03-01 16:58:06 +00:00
Alexey Karapetov
c688ff17eb
HandlerWrapper
2016-03-01 15:59:22 +00:00
Jordi Boggiano
dad186036c
Merge pull request #711 from phansys/json_formatter_normalizer
...
Add ability to include exception's stack traces in `Monolog\Formatter\JsonFormatter`
2016-03-01 15:48:15 +00:00
Jordi Boggiano
6079ae8bfb
Merge remote-tracking branch 'origin/1.0' into 1.x
2016-03-01 15:40:28 +00:00
Jordi Boggiano
cb2778ae77
Add ->withName to clone a handler and get a new name, fixes #730
2016-02-13 16:47:31 +00:00
Grégoire Paris
f1a59c5e0f
add release number to every log
...
This adds an internal release number to the raven handler. The release
number is added to what is sent to sentry unless something already is
present because a release number was sent via "context" or "extra".
2016-01-23 23:00:37 +01:00
Dmitriy Garanzha
e2a77060da
Raven client fingerprint support
2016-01-20 11:39:44 +02:00
Javier Spagnoletti
e8e1d9efa3
Add ability to include exception's stack traces in Monolog\Formatter\JsonFormatter
...
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
2015-12-31 11:24:28 -03:00