Jordi Boggiano
07cd08e0e4
Fix CS
2024-06-28 10:48:40 +02:00
Christoph Dreis
3ba77d1d39
Use fully-qualified name for native functions ( #1887 )
2024-06-28 10:45:25 +02:00
Nicolas Grekas
9546d94bdc
Use @return $this
where applicable ( #1828 )
2023-08-03 14:04:37 +02:00
Jordi Boggiano
6627c092d8
Add phpstan strict rules and deprecation rules, fix all related issues
2022-04-24 11:08:10 +02:00
Jordi Boggiano
7952a83e0c
Move phpdoc to native types
2022-04-20 09:21:58 +02:00
Jordi Boggiano
2695fa86cd
CI fixes
2022-04-19 22:16:53 +02:00
Jordi Boggiano
2d006a8472
Convert level/levelName to enums ( #1656 )
2022-04-19 21:49:03 +02:00
Jordi Boggiano
5eb9b8ed93
Code cleanups
2022-03-21 14:18:54 +01:00
Jordi Boggiano
22c8b19358
Add LogRecord class, drop PHP <8.1
2022-03-21 14:18:53 +01:00
Maximilian Bösing
4a11cadb27
Add constructor injection for SocketHandler
and its children ( #1600 )
...
* feature: add constructor injection for `SocketHandler` and its children
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com >
* docs: add parameter documentation to `SocketHandler#__construct`
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com >
2021-10-13 22:29:04 +02:00
Jordi Boggiano
19542ed8ef
Normalize @inheritDoc tags, refs #1557
2021-07-08 15:23:09 +02:00
Jordi Boggiano
13d40f953f
More type fixes towards level 7
2021-07-04 14:04:52 +02:00
Jordi Boggiano
01d104aa78
Add Record/Level/LevelName type aliases and improve phpstan type coverage to level 6
2021-07-04 14:04:52 +02:00
Victor Bocharsky
6087181108
Remove duplicated article in PHPDoc comment
2020-11-30 23:01:43 +02:00
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