Harm Bandstra
52d9096b14
Explicitly set content-type header, and post JSON as body
2017-06-19 02:12:59 +02:00
Alex Rock Ancelet
d84af8db3c
Fix SwiftMailerHandler support for Swiftmailer 6.0+
2017-06-19 01:59:54 +02:00
Jordi Boggiano
6fdf686a02
Use Aws\Sdk instead of Aws\Common\Aws, fixes #969 , fixes #977
2017-06-19 01:51:14 +02:00
Jordi Boggiano
357ae23fa4
Tweak HandlerWrapper example in docblock, fixes #991
2017-06-19 01:51:14 +02:00
Douglas Reith
765d225554
Support HeadlessChrome ( #966 )
...
* Support HeadlessChrome
2017-06-19 01:47:42 +02:00
Erik Johansson
81e8bf6189
Add level parameter to payload when reporting Rollbar exceptions ( #852 )
2017-03-20 10:04:18 +01:00
Jordi Boggiano
25da38373a
Split off work into a new method to facilitate extension, fixes #945
2017-03-17 22:58:02 +01:00
Jordi Boggiano
aeb65fa050
Fix BC break and formatting
2017-03-17 22:52:50 +01: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
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
Lesnykh Ilia
c82afaa303
Add missed return phpdoc tag. ( #908 )
...
* Add missed return phpdoc tag.
* Change $this to self.
2017-01-11 17:17:39 +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
26b526d9fb
Do not put empty Slack attachments array by default
2016-11-19 18:54:46 +02:00
Haralan Dobrev
8b2b13546e
Format constructors on a single line
...
This is for consistency with the rest of the handlers.
2016-11-19 18:53:03 +02:00
Anton Nizhegorodov
506e1b99e4
Make message formatting behaviour same as previous version
2016-11-19 18:53:02 +02:00
Anton Nizhegorodov
5fa5e37305
Fix SlackHandler
...
Slack API requires to json_encode the attachment field.
2016-11-19 18:53:02 +02:00
Haralan Dobrev
dd238892cf
Add missing PHPDoc types
2016-11-19 18:53:02 +02:00
Anton Nizhegorodov
1303dc6d72
Refactor SlackRecord
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
01a2ac25a2
Codereview fixes based on @stof comments
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
97eb782e8c
No need for extra json_encode
2016-11-19 18:53:01 +02:00
Haralan Dobrev
2d1fbbe423
Make SlackRecord::stringify() work without a line formatter
2016-11-19 18:53:01 +02:00
Haralan Dobrev
862c0875d2
Expose a getter for the SlackRecord in Slack handlers
2016-11-19 18:53:01 +02:00
Haralan Dobrev
000a21969f
Mark former public methods of SlackHandler as deprecated
...
The SlackRecord could be used now
2016-11-19 18:53:00 +02:00
Haralan Dobrev
115f6710b1
Use constants for Slack colors
2016-11-19 18:53:00 +02:00
Haralan Dobrev
4b671eb82c
Add a Slack Webhooks handler using the same SlackRecord util
2016-11-19 18:53:00 +02:00
Haralan Dobrev
274f778b24
Make channel in SlackRecord optional to allow for webhooks
2016-11-19 18:53:00 +02:00
Haralan Dobrev
f584e56ae1
Extract logic for preparing Slack data to SlackRecord
...
Keep the protected interface of the SlackHandler intact.
2016-11-19 18:53:00 +02:00
Haralan Dobrev
393e243499
Add a Slackbot handler
...
This is the simplest way to log to Slack using the Slackbot.
It supports only plain text with automatic linking of URLs and mentions.
2016-11-19 18:53:00 +02:00
Julien Falque
9d43c66cc6
Make protected generic methods public
2016-11-16 12:15:57 +01:00
Jordi Boggiano
f1d2b090d5
CS
2016-11-15 13:16:16 +01:00
Jay MOULIN
09a68c81e3
isolate fwrite to allow override
2016-11-15 13:15:19 +01:00
Jordi Boggiano
371b8ebb1b
Add a RollbarHandler::flush() and make it close automatically on shutdown, fixes #864 , closes #865
2016-11-13 20:25:52 +01:00
Jordi Boggiano
2c1ed388c2
Allow overriding the routing key in AMQPHandler, fixes #874
2016-11-13 20:12:37 +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
d72b886978
Add support for AWS SDK v3
2016-09-29 09:17:17 +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
9f8d34afae
Tweak RollbarHandler to use proper levels and include level and level_name in context info, fixes #852
2016-09-25 17:03:54 +02:00
Jared King
bc3ccb0e87
Add support for PHP 7 errors in RavenHandler by checking for Throwable instead of Exception
2016-08-17 11:14:23 -05: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
fac277b15a
Make separator optional
2016-07-29 04:07:25 +02:00
Jordi Boggiano
a6ecf50e74
Allow other separators for the date format in RotatingFileHandler
2016-07-29 04:04:32 +02:00
Jordi Boggiano
69fb2aa1c1
Fix GroupHandler::handleBatch when the handler has processors, fixes #814
2016-07-02 14:48:22 +01:00
Jordi Boggiano
39aeecefae
Add getter for the StreamHandler URL, fixes #797
2016-05-26 22:44:25 +01:00
Jordi Boggiano
5e6b844653
Only fail on really empty stream URL, fixes #796
2016-05-26 20:27:56 +01:00
Jordi Boggiano
ba9d57a96b
Add extra safety
2016-05-20 20:14:51 +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