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

1966 Commits

Author SHA1 Message Date
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
d34de6bf30 Fix SlackRecordTest 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
ec75076ded Add more tests to SlackRecordTest
Conflicts:
- tests/Monolog/Handler/Slack/SlackRecordTest.php - merged the tests
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
7c2f58e7aa Add initial tests for SlackRecord 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
0956a74897 Adds new Slack handlers to the docs 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
Jordi Boggiano
3c782662f9 Merge pull request #887 from remicollet/travis-php71
enable 7.1 on travis
2016-11-17 12:01:44 +01:00
Remi Collet
c8b8e85f78 enable 7.1 on travis 2016-11-17 11:43:54 +01:00
Jordi Boggiano
261f303841 Merge branch '1.x' 2016-11-17 11:26:29 +01: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
9cabe2961a Merge branch '1.x' 2016-11-15 13:16:37 +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
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
e5677a07ce Merge pull request #879 from martijncalker/add-sqshandler
Add SqsHandler
2016-11-14 10:09:14 +01:00
Jordi Boggiano
eb0cceefb4 Tiny wording fix 2016-11-14 10:09:00 +01:00
Jordi Boggiano
b5794652f5 Merge pull request #824 from adambro/patch-1
Throw RuntimeException if socket resource is missing
2016-11-14 10:04:02 +01:00
Martijn van Calker
c0cc2b6cdf Add SqsHandler 2016-11-14 09:20:24 +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
2133e01288 Prepare 1.22 changelog 2016-11-13 20:36:07 +01:00
Jordi Boggiano
1dc4cf31e8 Merge branch '1.x' 2016-11-13 20:26:27 +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
cc8a013611 Optimize removal of leftover extra/context placeholders, refs #866 2016-11-13 20:17:30 +01:00
Jordi Boggiano
79bf752d27 Merge pull request #866 from p-golovin/patch-1
Remove substitution for not defined variables
2016-11-13 20:15:08 +01:00
Jordi Boggiano
2c1ed388c2 Allow overriding the routing key in AMQPHandler, fixes #874 2016-11-13 20:12:37 +01:00
Jordi Boggiano
71c13b8c00 Merge pull request #872 from riccardomessineo/master
SlackHandler, new parameter $printSimpleMessage
2016-11-13 20:06:25 +01:00
Jordi Boggiano
e1fd076dbc Merge pull request #870 from tucksaun/fix-raven-handler-picking-wrong-event
Make the RavenHandler picks the first highest record as main
2016-11-13 20:02:41 +01:00
Jordi Boggiano
d33d11f264 Cache version_compare call, refs #884 2016-11-13 19:57:51 +01:00
Jordi Boggiano
fe94f2f1ad Merge pull request #884 from nikolaposa/fix/mongodb-formatter-date
Fixing date/time formatting in MongoDBFormatter
2016-11-13 19:53:29 +01:00
Jordi Boggiano
b21b465cca Fix Redis test failures 2016-11-13 19:50:36 +01:00
Jordi Boggiano
b85b5bc3e7 Merge pull request #880 from siwinski/pr-fix-test-for-sentry-gte-0-16-0
Fix tests for sentry/sentry >= 0.16.0 (and < 1.0)
2016-11-13 19:50:22 +01:00
Jordi Boggiano
9da099717b Cast toJson to string in case it returns false, fixes #878 2016-11-13 19:36:50 +01:00
Nikola Posa
b064f86b41 Fixing date/time formatting in MongoDBFormatter. 2016-11-10 20:57:05 +01:00
Jordi Boggiano
cb88cc82de Merge pull request #881 from aryeguy/patch-1
Added return type annotation
2016-11-07 09:56:29 +01:00