summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '1.x'Jordi Boggiano2017-06-191-3/+3
|\
| * Fix 5.3 supportJordi Boggiano2017-06-191-3/+3
| |
* | Fix level map override when using setExceptionHandler, fixes #1005Jordi Boggiano2017-06-191-1/+6
| |
* | Minor code cleanup on Handler/ErrorLogHandler.php (#995)Westin Shafer2017-06-191-6/+7
| | | | | | Just some cleanup for readability.
* | Merge branch '1.x'Jordi Boggiano2017-06-196-18/+35
|\ \ | |/
| * SlackWebhookHandler: refactor curl_setopt to curl_setopt_arrayHarm Bandstra2017-06-191-6/+10
| |
| * Explicitly set content-type header, and post JSON as bodyHarm Bandstra2017-06-191-1/+2
| |
| * Fix SwiftMailerHandler support for Swiftmailer 6.0+Alex Rock Ancelet2017-06-191-1/+6
| |
| * Use Aws\Sdk instead of Aws\Common\Aws, fixes #969, fixes #977Jordi Boggiano2017-06-191-2/+2
| |
| * Tweak HandlerWrapper example in docblock, fixes #991Jordi Boggiano2017-06-191-8/+10
| |
| * Support HeadlessChrome (#966)Douglas Reith2017-06-191-1/+1
| | | | | | * Support HeadlessChrome
| * PHP Versions less than 5.3.6 throws undefined constant DEBUG_BACKTRAC… (#986)Brant Messenger2017-06-191-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Use callable typehint where possible + Removed dead code (#996)Grégoire Pineau2017-06-192-8/+1
| | | | | | | | | | | | | | | | * Removed dead code * Use callable typehint where possible * Removed PHP5.3 workaround
* | LogstashFormatter: format context and extra fields as JSON objects (#976)Elnur Abdurrakhimov2017-06-191-6/+2
| | | | | | | | | | BC Break * For Logstash, format context as object instead of individual fields * For Logstash, format extra as object instead of individual fields
* | Fix some docblocks, closes #970Jordi Boggiano2017-06-192-6/+6
| |
* | Remove old BCJordi Boggiano2017-06-192-48/+0
| |
* | Use namespaced phpunit classes, fixes #983Jordi Boggiano2017-06-191-1/+1
| |
* | Remove typehints on normalizer formatter to avoid invalid function signaturesJordi Boggiano2017-06-191-2/+2
| |
* | Fix mongodb testsJordi Boggiano2017-06-181-1/+1
| |
* | Rename level_num to monolog_level, refs #960Jordi Boggiano2017-06-181-1/+1
| |
* | Merge remote-tracking branch 'pupsschluepfer/master'Jordi Boggiano2017-06-181-0/+3
|\ \
| * \ Merge remote-tracking branch 'upstream/master'Benjamin Pentzold2017-05-224-7/+7
| |\ \
| * | | map loglevel (int-value) to log-message, as wellBenjamin Pentzold2017-03-281-0/+3
| | | |
* | | | Merge branch '1.x'Jordi Boggiano2017-06-182-19/+18
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/|
| * | Update JsonFormatter.phpLesnykh Ilia2017-05-031-0/+2
| | |
| * | Remove constant from constructorJordi Boggiano2017-04-101-2/+2
| | |
| * | Use GELF max length per field and make max length configurable in constructorEnleur2017-04-071-16/+17
| | |
| * | Add level parameter to payload when reporting Rollbar exceptions (#852)Erik Johansson2017-03-201-0/+1
| | |
* | | Use coalesce operator (#982)Lesnykh Ilia2017-05-084-7/+7
| |/ |/| | | | | | | | | | | | | | | | | * Use coalesce operator * Use coalesce operator * Use coalesce operator * Use coalesce operator
* | Fix testsJordi Boggiano2017-03-201-1/+1
| |
* | CS fixesJordi Boggiano2017-03-2012-54/+49
| |
* | Make sure we use \Throwable and not just \ExceptionJordi Boggiano2017-03-203-8/+7
| |
* | Add level parameter to payload when reporting Rollbar exceptions (#852)Erik Johansson2017-03-191-0/+1
| |
* | Merge pull request #936 from zerkms/MICRO_OPT_FOREACH_INSTEAD_OF_CURRENT/NEXTJordi Boggiano2017-03-171-5/+8
|\ \ | | | | | | Replaced current/next-style loop with foreach
| * | Add comment note for clarityJordi Boggiano2017-03-171-0/+1
| | |
| * | Changed the "rewind loop condition" operandIvan Kurnosov2017-03-131-1/+1
| | | | | | | | | The `$handlerKey` might be a slightly more readable choice here
| * | Minor code readability improvementIvan Kurnosov2017-02-271-9/+4
| | |
| * | Replaced current/next-style loop with foreachIvan Kurnosov2017-02-271-5/+12
| | |
* | | Merge branch '1.x'Jordi Boggiano2017-03-172-2/+34
|\ \ \ | | |/ | |/|
| * | Split off work into a new method to facilitate extension, fixes #945Jordi Boggiano2017-03-171-0/+11
| | |
| * | Fix BC break and formattingJordi Boggiano2017-03-171-9/+11
| | |
| * | Complete rfc5424 header for SyslogUdpHandleront2017-03-151-2/+21
| | | | | | | | | | | | | | | WARN: this commit adds backward incompatibility for the SyslogUdpHandler constructor.
* | | Handle DateTime objects in formatted messages (#940)Piers Warmers2017-03-141-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle DateTime objects in formatted meessages * Use interface to catch both DateTime and DateTimeImmutable * Maintain formatting standards. * Visibility to private.
* | | Merge branch '1.x'Jordi Boggiano2017-03-131-1/+1
|\ \ \ | |/ /
| * | Fix 5.3 supportJordi Boggiano2017-03-131-1/+1
| | |
* | | Merge branch '1.x'Jordi Boggiano2017-03-122-1/+5
|\ \ \ | |/ /
| * | Backport fix for #752, fixes #925Jordi Boggiano2017-03-121-1/+5
| | |
| * | Allow to set custom event_id [LEGACY] (#930)Tim Strijdhorst2017-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * +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
| * | Php5.3 autoload errors (#929)fabriceparallel2017-03-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 8140f6026f59a2be9f80e562cf6ad6d441241593. * call class_exists with force autoload set to true, to force the autoload of LogLevel on registration of the handlers
| * | Add missed return phpdoc tag. (#908)Lesnykh Ilia2017-01-111-0/+1
| | | | | | | | | | | | | | | | | | * Add missed return phpdoc tag. * Change $this to self.
* | | Move human readable level name resolution in `Logger::addRecord()` to as ↵Ivan Kurnosov2017-03-121-2/+2
| | | | | | | | | | | | late as possible (#934)
* | | Logmatic fix (#914)Guillaume Polaert2017-03-122-5/+10
| | | | | | | | | | | | * Adding the marker field to improve the Logmatic.io compatibilty
* | | spelling fixes (comments, text)klemens2017-02-271-1/+1
| |/ |/|
* | Replacing the outdated add* methods in the docs with the PSR-3 compliant ↵StevenW2017-01-072-3/+3
| | | | | | | | methods.
* | Merge branch '1.x'Jordi Boggiano2016-12-163-45/+95
|\ \ | |/
| * Slack improvements (#894)Anton Nizhegorodov2016-12-133-45/+95
| | | | | | | | | | | | | | | | | | | | - [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
* | Fixed Logstash event format link (#898)Michal Zuber2016-12-131-1/+1
| |
* | More interface updatesJordi Boggiano2016-11-272-2/+2
| |
* | Interface updatesJordi Boggiano2016-11-272-2/+2
| |
* | Merge branch '1.x'Jordi Boggiano2016-11-265-152/+490
|\ \ | |/
| * Merge pull request #891 from naderman/t/do-not-iterate-non-arraysJordi Boggiano2016-11-261-6/+2
| |\ | | | | | | Do not iterate non-array Traversables
| | * Don't even try to attempt normalizing iterators or generators in contextNils Adermann2016-11-241-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Do not put empty Slack attachments array by defaultHaralan Dobrev2016-11-191-1/+0
| | |
| * | Format constructors on a single lineHaralan Dobrev2016-11-192-18/+4
| | | | | | | | | | | | This is for consistency with the rest of the handlers.
| * | Make message formatting behaviour same as previous versionAnton Nizhegorodov2016-11-192-1/+25
| | |
| * | Fix SlackHandlerAnton Nizhegorodov2016-11-191-0/+4
| | | | | | | | | | | | Slack API requires to json_encode the attachment field.
| * | Add missing PHPDoc typesHaralan Dobrev2016-11-191-3/+3
| | |
| * | Refactor SlackRecordAnton Nizhegorodov2016-11-191-37/+47
| | |
| * | Update SlackHandler tests && allow SlackRecord formatter change after ↵Anton Nizhegorodov2016-11-192-0/+19
| | | | | | | | | | | | construction
| * | Codereview fixes based on @stof commentsAnton Nizhegorodov2016-11-193-32/+15
| | |
| * | Make sure extra/context variables are stringified when more than one level deepAnton Nizhegorodov2016-11-191-3/+3
| | |
| * | No need for extra json_encodeAnton Nizhegorodov2016-11-191-1/+1
| | |
| * | Make SlackRecord::stringify() work without a line formatterHaralan Dobrev2016-11-191-1/+5
| | |
| * | Expose a getter for the SlackRecord in Slack handlersHaralan Dobrev2016-11-192-0/+10
| | |
| * | Mark former public methods of SlackHandler as deprecatedHaralan Dobrev2016-11-191-0/+12
| | | | | | | | | | | | The SlackRecord could be used now
| * | Use constants for Slack colorsHaralan Dobrev2016-11-191-4/+12
| | |
| * | Add a Slack Webhooks handler using the same SlackRecord utilHaralan Dobrev2016-11-191-0/+96
| | |
| * | Make channel in SlackRecord optional to allow for webhooksHaralan Dobrev2016-11-191-1/+4
| | |
| * | Extract logic for preparing Slack data to SlackRecordHaralan Dobrev2016-11-192-152/+253
| | | | | | | | | | | | Keep the protected interface of the SlackHandler intact.
| * | Add a Slackbot handlerHaralan Dobrev2016-11-191-0/+84
| |/ | | | | | | | | This is the simplest way to log to Slack using the Slackbot. It supports only plain text with automatic linking of URLs and mentions.
| * Fix PHP7.1 DateTime supportJordi Boggiano2016-11-171-1/+2
| |
* | Merge branch '1.x'Jordi Boggiano2016-11-161-3/+3
|\ \ | |/
| * Make protected generic methods publicJulien Falque2016-11-161-3/+3
| |
* | Merge branch '1.x'Jordi Boggiano2016-11-151-1/+11
|\ \ | |/
| * CSJordi Boggiano2016-11-151-1/+1
| |
| * isolate fwrite to allow overrideJay MOULIN2016-11-151-1/+11
| |
* | Fix microseconds support on 7.1, and enable it by default as 7.1 has no perf ↵Jordi Boggiano2016-11-142-3/+9
| | | | | | | | cost anymore
* | Merge pull request #879 from martijncalker/add-sqshandlerJordi Boggiano2016-11-141-0/+53
|\ \ | | | | | | Add SqsHandler
| * | Add SqsHandlerMartijn van Calker2016-11-141-0/+53
| | |
* | | Merge pull request #824 from adambro/patch-1Jordi Boggiano2016-11-141-1/+1
|\ \ \ | | | | | | | | Throw RuntimeException if socket resource is missing
| * | | Throw RuntimeException if socket resource is missingAdam Brodziak2016-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The socket resource can be closed, purged or lost during the runtime of an application. It is valid concern, because the resource is acquired and used at different times during request. LogicException is more for static preconditions that have to be valid before function call.
* | | | Merge pull request #868 from ComaVN/noop-handlerJordi Boggiano2016-11-131-0/+42
|\ \ \ \ | | | | | | | | | | Added the NoopHandler.
| * | | | Added the NoopHandler.Roel Harbers2016-10-121-0/+42
| | |/ / | |/| | | | | | | | | | | | | | | | | | 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-134-6/+25
|\ \ \ \ | | |_|/ | |/| |
| * | | Add a RollbarHandler::flush() and make it close automatically on shutdown, ↵Jordi Boggiano2016-11-131-4/+17
| | | | | | | | | | | | | | | | fixes #864, closes #865
| * | | Optimize removal of leftover extra/context placeholders, refs #866Jordi Boggiano2016-11-131-3/+5
| | | |
| * | | Merge pull request #866 from p-golovin/patch-1Jordi Boggiano2016-11-131-0/+4
| |\ \ \ | | | | | | | | | | Remove substitution for not defined variables
| | * | | Update LineFormatter.phpPavel Golovin2016-10-101-2/+2
| | | | |
| | * | | Remove substitution for not defined variablesPavel Golovin2016-10-101-0/+4
| | | | | | | | | | | | | | | If variable in extra or context isn't defined, than placeholder will not not be replaced in format string. This patch remove all not replaced placeholders
| * | | | Allow overriding the routing key in AMQPHandler, fixes #874Jordi Boggiano2016-11-131-1/+1
| | | | |