1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-19 15:49:19 +02:00
Commit Graph

55 Commits

Author SHA1 Message Date
Jordi Boggiano
0b9ee7e636 Merge branch '1.x' 2019-11-12 21:50:28 +01:00
Jordi Boggiano
12a76ad61e Fix usages of json_encode which did not handle invalid UTF8 gracefully, fixes #1392 2019-11-12 21:24:23 +01:00
Jordi Boggiano
ff63831e4d Merge remote-tracking branch 'EspadaV8/add-fluent-setters-for-slack-handler' 2019-07-06 13:46:59 +02:00
Jordi Boggiano
4a33226f25 Wrap up type-hint adding to all handlers 2018-11-19 23:28:33 +01:00
Andrew Smith
c9d15bb808 Add fluent setters for parameters in the slack handler 2018-07-06 11:47:27 +10:00
Jordi Boggiano
06143b03e5 Add a bunch of return types and fix type inconsistencies reports from phan 2018-07-04 14:14:08 +02:00
Jordi Boggiano
5d286c1cb9 Merge pull request #1164 from gmponos/slack_formatter_constructor
Remove from slack handler on constructing the SlackRecord to pass the Formatte
2018-06-17 18:19:09 +02:00
George Mponos
11b664d276 Fix constructor of slack 2018-06-08 20:30:09 +03:00
Jordi Boggiano
9a2c747a0a Merge branch '1.x' 2018-06-07 18:30:00 +02:00
MilesChou
985fdb3eae Add getter for webhook and token property 2018-04-25 15:51:22 +08:00
MilesChou
1107013b9c Open visibility for slack handlers 2018-04-24 23:17:02 +08:00
Jordi Boggiano
772a470c1a Merge branch '1.x' 2017-03-17 23:01:57 +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
efb3fa354c Merge branch '1.x' 2016-12-16 08:47:02 +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
24ad4b02b6 More interface updates 2016-11-27 11:28:44 +01:00
Jordi Boggiano
b154c5fd26 Interface updates 2016-11-27 11:26:51 +01:00
Jordi Boggiano
f6e6f22e77 Merge branch '1.x' 2016-11-26 01:23:57 +01: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
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
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
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
Riccardo Messineo
0fb49dcfdf New parameter $printSimpleMessage default false (Whether the attachment should include only the message without extradata) 2016-10-18 09:46:33 +02:00
Jordi Boggiano
6b0d0c4a19 Merge branch '1.x' 2016-07-29 04:53:49 +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
21dde4dedb Move to strict mode and fix tests 2016-05-27 13:44:00 +01:00
Jordi Boggiano
f200e79879 CS fixes 2016-05-26 20:54:06 +01:00
Jordi Boggiano
5085630fd6 Fix SlackHandler bug where slack drops some messages if the socket is closed too early, fixes #729 2016-03-07 12:29:57 +00:00
Daniel Gimenes
3521455e51 LineFormatter if configured to use short attachment 2016-03-01 17:02:07 +00:00
Jordi Boggiano
c889fb2648 CS fixes & upgrading cs fixer config 2015-11-18 17:09:46 +00:00
pomaxa
5b05c66429 php doc for throw exception 2015-09-30 00:53:37 +03:00
raph
976259bb5b Use text and title fields for SlackHandler
According to slack documentation (https://api.slack.com/docs/attachments),  an attachment may have a title and a text. The log message and title should use these fields. One of the benefits of using these two properties instead of adding a field is that it's shortened (with a "show more" button) and expandable by slack. It adds a bit of hierarchy in the attachement. Message is the content. Extra and context are additional fields.
2015-09-17 09:52:52 +02:00
Jordi Boggiano
ca1376bd61 CS fixes 2015-07-14 10:26:05 +01:00
Andrey Artemov
252690add1 Making SlackHandler more extendable 2015-04-07 07:09:33 +03:00
Pascal Borreli
a2c6c37c8d Fixed typos 2015-03-05 01:11:15 +00:00
Jordi Boggiano
1b34cd4d88 Rename var for clarity 2015-03-01 15:07:20 +00:00
Jordi Boggiano
995a61bec8 CS fixes 2015-03-01 14:12:35 +00:00
Jamie Learmonth
6f0e7f666e #493 Ensure extra and context fields are only added when they are present and not empty. Ensure both follow have consistent formatting. 2015-02-11 14:11:24 +00:00
Jamie Learmonth
01e593cdeb #493 Include context in slack extra info. 2015-02-09 22:35:23 +00:00
Jordi Boggiano
3e1b8a7afe Remove code duplication, refs #435 2014-12-28 16:28:20 +00:00
Patrick Landolt
20b56007ad added the option to include extra data and to chose for a smaller output but with the same information available 2014-10-14 10:53:50 +02:00
Jordi Boggiano
d2ec7648d0 Move iconEmoji param upfront since Slack was never in a stable release 2014-09-30 14:28:08 +01:00
Jordi Boggiano
0edd89d556 CS fixes 2014-09-29 23:07:02 +01:00
Jordi Boggiano
4f85e5570c Merge pull request #413 from fotomerchant/feature/slackEmoji
Added Emoji support for the Slack Handler
2014-09-29 22:58:47 +01:00
Grégoire Pineau
f3b61cf48a Fixed visibility 2014-09-08 20:01:00 +02:00
Derek Clapham
ff6c458260 Updated position of iconEmoji variable to prevent BC breaks 2014-08-22 16:49:42 +10:00
Derek Clapham
c63d082444 Added emoji support as per slack api doc: https://api.slack.com/methods/chat.postMessage 2014-08-22 15:19:14 +10:00