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

1722 Commits

Author SHA1 Message Date
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
Grégoire Pineau
1e8deb4672 Drop HHVM in .travis.yml 2018-04-16 15:03:26 +02:00
Robert Gust-Bardon
4fea44bf96 Fix the reflection of constants in HHVM 2018-02-22 13:48:30 -06:00
Robert Gust-Bardon
cf979844dc Register signal handlers 2018-02-22 11:16:36 -06:00
Damian Mooyman
2d9c905b76 ENHANCEMENT Ensure 'trace' is captured for non-exceptions
Fixes #693
2018-01-15 10:42:24 +13:00
MilesChou
18b93feea6 Add getter for webhook url in SlackWebhookHandler class
Add getter so that the subclass can easy to inherit SlackWebhookHandler class
2017-11-30 13:47:54 +08:00
Erik Booij
ecdfdc9897 Rename Boolean in phpDocs to bool 2017-11-04 12:14:41 +01:00
gmsantos
81db432c02 Include insightops handler 2017-09-10 00:13:37 -03:00
Vincent Paré
207c91699e Custom exception handler (#500)
Add custom exception handler to let the user change the default
behavior when Monolog raise an exception while logging a record.
2017-07-14 12:18:44 +02:00
Jordi Boggiano
fd8c787753 Update changelog 1.23.0 2017-06-19 03:22:40 +02:00
Jordi Boggiano
d6be96bc3c Fix 5.3 support 2017-06-19 03:13:01 +02:00
Harm Bandstra
4260b46760 SlackWebhookHandler: refactor curl_setopt to curl_setopt_array 2017-06-19 02:13:06 +02:00
Harm Bandstra
52d9096b14 Explicitly set content-type header, and post JSON as body 2017-06-19 02:12:59 +02:00
Jordi Boggiano
188a46836b Fix DyanmoDbHandler test suite 2017-06-19 02:06:55 +02:00
Jordi Boggiano
2ea3d95ca2 Make sure this works on any hostname 2017-06-19 02:00:36 +02:00
Alex Rock Ancelet
d84af8db3c Fix SwiftMailerHandler support for Swiftmailer 6.0+ 2017-06-19 01:59:54 +02:00
Jordi Boggiano
6fdf686a02 Use Aws\Sdk instead of Aws\Common\Aws, fixes #969, fixes #977 2017-06-19 01:51:14 +02:00
Jordi Boggiano
357ae23fa4 Tweak HandlerWrapper example in docblock, fixes #991 2017-06-19 01:51:14 +02:00
Douglas Reith
765d225554 Support HeadlessChrome (#966)
* Support HeadlessChrome
2017-06-19 01:47:42 +02:00
Remon van de Kamp
deb0ea4ee7 Use first day/first month for date calculations in RotatingFileHandlerTest (#963)
When making the calculations for the filename of the current month using
date('d') does not work because you may run into the situation where you run
the tests on a day in a month that does not exist in the previous month,
for example March 30th. As there is no February 30th, PHP will skip ahead
to March, and the filename for the "previous" month will incorrectly be
"2017-03" instead of the expected "2017-02". Using the first day of the
month instead of the current day of the month solves this problem.

For consistency we now also use the first month of each year for calculations
regarding years even if this is not necessary, it would break symmetry
if we don't, plus it makes it clear that the value is not relevant in the
calculation.
2017-06-19 01:33:57 +02:00
Brant Messenger
1b769912d1 PHP Versions less than 5.3.6 throws undefined constant DEBUG_BACKTRAC… (#986)
* PHP Versions less than 5.3.6 throws undefined constant DEBUG_BACKTRACE_IGNORE_ARGS 

Notice: Use of undefined constant DEBUG_BACKTRACE_IGNORE_ARGS - assumed 'DEBUG_BACKTRACE_IGNORE_ARGS' in /vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php on line 58

* Define DEBUG_BACKTRACE_IGNORE_ARGS if not defined.

* Solution using PHP_VERSION_ID and not defining...

...DEBUG_BACKTRACE_IGNORE_ARGS
2017-06-19 01:16:17 +02:00
Jordi Boggiano
120499283b Remove amqp ext 2017-06-19 00:09:41 +02:00
Jordi Boggiano
af1e913233 Revert "Tweak extension loading"
This reverts commit 9cf8fb3810.
2017-06-19 00:07:43 +02:00
Jordi Boggiano
9cf8fb3810 Tweak extension loading 2017-06-19 00:03:59 +02:00
Jordi Boggiano
70ed794fb2 Update to trusty builds 2017-06-18 23:42:15 +02:00
Jordi Boggiano
35c07a81de Merge pull request #979 from Aliance/patch-1
Update JsonFormatter PHPDoc.
2017-05-03 15:17:21 +02:00
Lesnykh Ilia
6696e045df Update JsonFormatter.php 2017-05-03 15:37:25 +03:00
Jordi Boggiano
4cdd014b80 Merge pull request #967 from enleur/gelf-max-length
Gelf max length
2017-04-10 09:58:43 +02:00
Jordi Boggiano
1b660bbbee Remove constant from constructor 2017-04-10 09:37:23 +02:00
Enleur
faed450d52 Use GELF max length per field and make max length configurable in constructor 2017-04-07 13:49:54 +03:00
Jordi Boggiano
3266b6e257 Fix test moar 2017-03-20 11:21:06 +01:00
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