1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-31 00:40:15 +02:00

1562 Commits

Author SHA1 Message Date
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
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
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
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
2133e01288 Prepare 1.22 changelog 2016-11-13 20:36:07 +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
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
Tugdual Saunier
d234839de1 Make the RavenHandler picks the first highest record as main 2016-10-13 09:42:54 +01:00
Pavel Golovin
c3c0abf2a4 Update LineFormatter.php 2016-10-10 19:01:08 +03:00
Pavel Golovin
ccb4aeba21 Remove substitution for not defined variables
If variable in extra or context isn't defined, than placeholder will not not be replaced in format string. This patch remove all not replaced placeholders
2016-10-10 18:57:57 +03:00
Jordi Boggiano
214b8ef34b Add total amount of items when aborting traversable normalization 2016-10-03 20:31:30 +02:00
Jordi Boggiano
7f135e9ed0 Add support for consumed generators in NormalizerFormatter, fixes #838 2016-09-29 09:29:30 +02:00
Jordi Boggiano
6bf91fa40a Make sure MercurialProcessor fails gracefully 2016-09-29 09:17:31 +02: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
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
Jordi Boggiano
dacec2fe1e Merge remote-tracking branch 'eimanavicius/support-for-Throwable-in-JsonFormatter' into 1.x 2016-09-18 18:07:11 +02:00
Jordi Boggiano
300dda8f57 Merge pull request #834 from jaredtking/raven-php7-throwable
Add support for PHP 7 errors in RavenHandler
2016-09-18 17:52:02 +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
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
f42fbdfd53 Update changelog 1.21.0 2016-07-29 05:23:52 +02:00
Adam Kiss
3419d21669 Added option to log errors regardless of error_reporting setting 2016-07-29 05:22:42 +02:00