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

1740 Commits

Author SHA1 Message Date
Jordi Boggiano
e4774920ff Fix test class 2017-03-20 11:04:39 +01:00
Jordi Boggiano
fb751dff33 Remove return annotations 2017-03-20 10:18:43 +01:00
Jordi Boggiano
c192b1a373 Remove strict types from test suite 2017-03-20 10:15:03 +01:00
Jordi Boggiano
3b1f98df2a Fix 5.3 support 2017-03-20 10:07:14 +01: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
e481c9db10 Merge pull request #943 from ont/1.x
Complete rfc5424 header for SyslogUdpHandler
2017-03-17 22:57:35 +01:00
Jordi Boggiano
24894709d1 Fix tests 2017-03-17 22:54:56 +01:00
Jordi Boggiano
aeb65fa050 Fix BC break and formatting 2017-03-17 22:52:50 +01:00
ont
8c40211c3f Fix array syntax for Travis CI 2017-03-15 12:00:44 +07: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
Jordi Boggiano
1e044bc4b3 Update changelog for 1.22.1, fixes #918 1.22.1 2017-03-13 08:08:03 +01:00
Jordi Boggiano
1584a90c48 Fix 5.3 support 2017-03-13 08:02:29 +01:00
Jordi Boggiano
821cc3e4a5 Backport fix for #752, fixes #925 2017-03-12 18:17:37 +01: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
fabriceparallel
cc5f1eb34d Php5.3 autoload errors (#929)
* make ErrorHandler extends LogLevel to avoid autoloading issue when error is triggered on compile

* Revert "make ErrorHandler extends LogLevel to avoid autoloading issue when error is triggered on compile"

This reverts commit 8140f6026f.

* call class_exists with force autoload set to true, to force the autoload of LogLevel on registration of the handlers
2017-03-12 17:42:12 +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
Jordi Boggiano
fdd6780ffd Merge pull request #897 from vlakoff/readme
Rename Markdown files to use the regular file extension
2016-12-04 19:12:24 +01:00
vlakoff
8d53e6b91f Rename Markdown files to use the regular file extension 2016-12-03 12:26:01 +01:00
Jordi Boggiano
bad29cb8d1 Finalize 1.22 readme 1.22.0 2016-11-26 01:15:39 +01:00
Jordi Boggiano
774dedb352 Merge pull request #891 from naderman/t/do-not-iterate-non-arrays
Do not iterate non-array Traversables
2016-11-26 01:04:57 +01:00
Jordi Boggiano
e94929eed0 Merge pull request #846 from hkdobrev/slack-webhooks
Add new Slack handlers using Slackbot and webhooks
2016-11-26 00:40:05 +01:00
Nils Adermann
45de570954 Don't even try to attempt normalizing iterators or generators in context
Iterators and Generators may not be rewindable, so foreach is not safe
to use on them.

Iterators and especially Generators may trigger irreversible actions on
calling next(), so iterating over all values can potentially cause harm,
e.g. imagine an iterator over a set of HTTP POST requests that are sent
when the next value is requested . The only sufficiently safe thing to
iterate and include here are primitive arrays.
2016-11-24 17:38:07 +01:00
Haralan Dobrev
9fbc286428 Add unit test for SlackbotHandler 2016-11-19 18:54:46 +02:00
Haralan Dobrev
43e1e69bad Add unit tests for SlackWebhookHandler 2016-11-19 18:54:46 +02: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
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