summaryrefslogtreecommitdiffstats
path: root/tests/Monolog/Handler
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '1.x'Jordi Boggiano2017-06-194-8/+30
|\
| * Fix DyanmoDbHandler test suiteJordi Boggiano2017-06-191-2/+9
| |
| * Fix SwiftMailerHandler support for Swiftmailer 6.0+Alex Rock Ancelet2017-06-191-1/+1
| |
| * Support HeadlessChrome (#966)Douglas Reith2017-06-191-1/+16
| | | | | | * Support HeadlessChrome
| * Use first day/first month for date calculations in RotatingFileHandlerTest ↵Remon van de Kamp2017-06-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#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.
| * Fix test moarJordi Boggiano2017-03-201-3/+5
| |
| * Fix test classJordi Boggiano2017-03-201-1/+1
| |
| * Remove return annotationsJordi Boggiano2017-03-201-2/+2
| |
| * Remove strict types from test suiteJordi Boggiano2017-03-201-1/+1
| |
* | Use callable typehint where possible + Removed dead code (#996)Grégoire Pineau2017-06-191-11/+3
| | | | | | | | | | | | | | | | * Removed dead code * Use callable typehint where possible * Removed PHP5.3 workaround
* | Avoid assertion-free testJordi Boggiano2017-06-191-0/+1
| |
* | Use namespaced phpunit classes, fixes #983Jordi Boggiano2017-06-191-1/+1
| |
* | Split expectException calls with two parameters into the proper two callsChris Forrence2017-03-211-1/+2
| |
* | Replace deprecated setExpectedException methods with expectExceptionChris Forrence2017-03-212-2/+2
| |
* | Fix testsJordi Boggiano2017-03-201-2/+2
| |
* | CS fixesJordi Boggiano2017-03-205-19/+23
| |
* | Merge branch '1.x'Jordi Boggiano2017-03-201-1/+1
|\ \ | |/
| * Fix 5.3 supportJordi Boggiano2017-03-201-3/+3
| |
| * Add level parameter to payload when reporting Rollbar exceptions (#852)Erik Johansson2017-03-201-0/+82
| |
* | Add level parameter to payload when reporting Rollbar exceptions (#852)Erik Johansson2017-03-191-0/+82
| |
* | Merge branch '1.x'Jordi Boggiano2017-03-171-3/+14
|\ \ | |/
| * Fix testsJordi Boggiano2017-03-171-2/+2
| |
| * Fix array syntax for Travis CIont2017-03-151-2/+2
| |
| * Complete rfc5424 header for SyslogUdpHandleront2017-03-151-4/+15
| | | | | | | | | | WARN: this commit adds backward incompatibility for the SyslogUdpHandler constructor.
* | Merge branch '1.x'Jordi Boggiano2017-03-121-1/+3
|\ \ | |/
| * Allow to set custom event_id [LEGACY] (#930)Tim Strijdhorst2017-03-121-1/+3
| | | | | | | | | | | | | | | | | | | | * +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
* | Logmatic fix (#914)Guillaume Polaert2017-03-121-2/+2
| | | | | | | | * Adding the marker field to improve the Logmatic.io compatibilty
* | Merge branch '1.x'Jordi Boggiano2016-12-162-59/+106
|\ \ | |/
| * Slack improvements (#894)Anton Nizhegorodov2016-12-132-59/+106
| | | | | | | | | | | | | | | | | | | | - [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
* | Remove remaining artifacts from mlehner/gelf-php (#896)Remon van de Kamp2016-12-132-120/+0
| |
* | Fix testsJordi Boggiano2016-11-263-3/+3
| |
* | Merge branch '1.x'Jordi Boggiano2016-11-264-15/+513
|\ \ | |/
| * Add unit test for SlackbotHandlerHaralan Dobrev2016-11-191-0/+47
| |
| * Add unit tests for SlackWebhookHandlerHaralan Dobrev2016-11-191-0/+106
| |
| * Do not put empty Slack attachments array by defaultHaralan Dobrev2016-11-191-3/+2
| |
| * Fix SlackHandlerAnton Nizhegorodov2016-11-191-1/+1
| | | | | | | | Slack API requires to json_encode the attachment field.
| * Fix SlackRecordTestAnton Nizhegorodov2016-11-191-3/+2
| |
| * Update SlackHandler tests && allow SlackRecord formatter change after ↵Anton Nizhegorodov2016-11-192-5/+20
| | | | | | | | construction
| * Make sure extra/context variables are stringified when more than one level deepAnton Nizhegorodov2016-11-191-1/+1
| |
| * Add more tests to SlackRecordTestAnton Nizhegorodov2016-11-191-0/+247
| | | | | | | | | | Conflicts: - tests/Monolog/Handler/Slack/SlackRecordTest.php - merged the tests
| * Add initial tests for SlackRecordHaralan Dobrev2016-11-191-0/+84
| |
| * Use constants for Slack colorsHaralan Dobrev2016-11-191-8/+9
| |
* | Merge branch '1.x'Jordi Boggiano2016-11-161-0/+4
|\ \ | |/
| * Make protected generic methods publicJulien Falque2016-11-161-0/+4
| |
* | Fix microseconds support on 7.1, and enable it by default as 7.1 has no perf ↵Jordi Boggiano2016-11-141-2/+2
| | | | | | | | cost anymore
* | Fix UdpSocket testsJordi Boggiano2016-11-141-1/+1
| |
* | Merge pull request #868 from ComaVN/noop-handlerJordi Boggiano2016-11-131-0/+49
|\ \ | | | | | | Added the NoopHandler.
| * | removed unused data provider in testRoel Harbers2016-10-121-10/+0
| | |
| * | Added the NoopHandler.Roel Harbers2016-10-121-0/+59
| | | | | | | | | | | | | | | | | | This handler handles anything, but does nothing, and does not stop bubbling to the rest of the stack. This can be used for testing, or to disable a handler when overriding a configuration without influencing the rest of the stack.
* | | Merge branch '1.x'Jordi Boggiano2016-11-131-0/+26
|\ \ \ | | |/ | |/|
| * | Make the RavenHandler picks the first highest record as mainTugdual Saunier2016-10-131-0/+26
| | |
* | | Fix Redis test failuresJordi Boggiano2016-11-131-0/+12
| | |
* | | Fix tests for sentry/sentry >= 0.16.0 (and < 1.0)Shawn Iwinski2016-11-062-2/+34
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | From composer.json: `"sentry/sentry": "^0.13"` Latest 0.x `sentry/sentry`: 0.22.0 sentry/sentry 0.16.0 changed the function signature of Raven_Client::capture(): 0.16.0: `public function capture($data, $stack = null, $vars = null)` 0.15.0: `public function capture($data, $stack, $vars = null)` While the test suite silently passes with PHP < 7.1, running the test suite with PHP 7.1 fails with the following error: `Declaration of Monolog\Handler\MockRavenClient::capture($data, $stack, $vars = NULL) should be compatible with Raven_Client::capture($data, $stack = NULL, $vars = NULL)`
* | Fix type errors, thanks phanJordi Boggiano2016-09-251-11/+11
| |
* | CS fixesJordi Boggiano2016-09-259-11/+11
| |
* | Merge branch '1.x'Jordi Boggiano2016-09-251-1/+20
|\ \ | |/
| * Make sure SyslogUdpHandler does not create empty frames where not necessary, ↵Jordi Boggiano2016-09-251-1/+17
| | | | | | | | fixes #841
* | Undo this LocalSocket fiasco, fix tests for latest phpunitJordi Boggiano2016-09-2514-209/+441
| |
* | Fixing the socket mess, maybe.Jordi Boggiano2016-09-198-349/+73
| |
* | Fix lower testsJordi Boggiano2016-09-191-21/+43
| |
* | Fix a ton of tests for latest phpunit and turn faked-stream tests into real ↵Jordi Boggiano2016-09-1917-378/+418
| | | | | | | | network tests with a local server
* | Merge branch '1.x'Jordi Boggiano2016-07-291-0/+18
|\ \ | |/
| * Fix testsJordi Boggiano2016-07-291-3/+3
| |
| * Allow formatting of message by setting a line formatter on SlackHandler, ↵Jordi Boggiano2016-07-291-0/+18
| | | | | | | | fixes #829
* | Merge branch '1.x', fixes #771Jordi Boggiano2016-07-291-0/+4
|\ \ | |/
* | Allow alternative date separators for RotatingFileHandlerRemon van de Kamp2016-07-141-0/+12
| | | | | | | | | | | | Currently only dashes are allowed in date formats (i.e., "Y-m-d"). This commit also allows slashes, underscores and dots to be used instead of only dashes for more flexibility.
* | CS fixesJordi Boggiano2016-07-022-2/+2
| |
* | Merge remote-tracking branch 'JulienBreux/feature/logmatic'Jordi Boggiano2016-07-021-0/+84
|\ \
| * | Add Logmatic.ioJulien Breux2016-06-281-0/+84
| | |
* | | Merge branch '1.x'Jordi Boggiano2016-07-021-0/+23
|\ \ \ | |/ / |/| / | |/
| * Fix GroupHandler::handleBatch when the handler has processors, fixes #814Jordi Boggiano2016-07-021-0/+23
| |
* | Fix method caseJordi Boggiano2016-05-271-1/+1
| |
* | More amqp fixesJordi Boggiano2016-05-271-5/+1
| |
* | Move to strict mode and fix testsJordi Boggiano2016-05-2748-56/+57
| |
* | Auto-detecting of mime type for emails and switched to HtmlFormatter for ↵Jordi Boggiano2016-05-262-0/+2
| | | | | | | | emails by default, fixes #577
* | Make handlers more serializable by default by having them close() before ↵Jordi Boggiano2016-05-261-5/+30
| | | | | | | | sleeping, fixes #365
* | CS fixesJordi Boggiano2016-05-2640-385/+385
| |
* | Change the way objects are normalized to avoid multi-levels of json ↵Jordi Boggiano2016-05-261-1/+1
| | | | | | | | encoding, fixes #560
* | Coding style fixes, refs #720Jordi Boggiano2016-05-261-1/+1
| |
* | Merge remote-tracking branch 'ArSn/master'Jordi Boggiano2016-05-261-0/+195
|\ \
| * | Replaced indention tabs with 4 spaces in ProcessHandler and its test.kolja2016-01-151-176/+176
| | |
| * | Removed obsolete var_export(). Made construction argument validation tests ↵kolja2016-01-151-14/+3
| | | | | | | | | | | | simpler and more readable.
| * | Created "ProcessHandler", that logs records to the STDIN of a custom ↵kolja2016-01-151-0/+206
| | | | | | | | | | | | process, defined by given command.
* | | Set default date format to have a timezone, fixes #196Jordi Boggiano2016-05-263-4/+4
| | |
* | | Switch to DateTimeImmutable everywhereJordi Boggiano2016-05-204-16/+16
| | |
* | | Remove HipChat API v1 supportJordi Boggiano2016-05-201-44/+0
| | |
* | | Make TestCase class available to dependents to help with testingJordi Boggiano2016-05-2043-43/+43
| | |
* | | Merge remote-tracking branch 'rpkamp/master'Jordi Boggiano2016-05-201-12/+6
|\ \ \
| * | | Lock down RotateFileHandler to prevent errors with rotationRemon van de Kamp2016-04-181-10/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Require the dateFormat to be one of three presets ('Y-m-d', 'Y-m' or 'Y') to ensure that dates can be sorted lexographically - Require the filenameFormat to contain the (sub)string `{date}` so we will actually create new files instead of the same file over and over again.
* | | | Merge branch '1.x'Jordi Boggiano2016-05-203-10/+154
|\ \ \ \ | |/ / / |/| | / | | |/ | |/|
| * | Fix NewRelicHandler error when using LineFormatterMichael Moussa2016-05-201-0/+8
| | |
| * | Add deprecation errors on RotatingFileHandler (#774)Remon van de Kamp2016-05-201-10/+122
| | | | | | | | | | | | | | | | | | * Add deprecation errors when attempting to set dateFormats of fileFormats that break the possibility of rotating easily in RotatingFileHandler. Version 2.x of Monolog will throw `\InvalidArgumentException`s in these cases.
| * | FingersCrossed: Adapt test for extraction of activate from handle()Nils Adermann2016-04-151-1/+9
| | |
| * | Add a test that verifies manual overriding of activation strategy worksNils Adermann2016-04-141-0/+16
| | |
* | | Removed substr call in amqp routing key generatorJeroen Thora2016-04-141-2/+2
| | |
* | | Merge branch '1.x'Jordi Boggiano2016-04-123-0/+201
|\ \ \ | |/ /
| * | Fix handling of messages with new linesJordi Boggiano2016-04-121-2/+2
| | |
| * | Fix bug when messages contain colonsJordi Boggiano2016-04-121-2/+2
| | |
| * | Add ability to use formatter in email subject linesJordi Boggiano2016-04-122-0/+36
| | |
| * | Add DeduplicationHandler to avoid spamming the same log records over and overJordi Boggiano2016-04-121-0/+165
| | |