1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-10 23:24:02 +02:00

1740 Commits

Author SHA1 Message Date
Ronald Drenth
0d2bef0579 Add handleBatch implementation for PhpAmqpLib 2016-03-01 15:57:23 +00:00
Jordi Boggiano
dad186036c Merge pull request #711 from phansys/json_formatter_normalizer
Add ability to include exception's stack traces in `Monolog\Formatter\JsonFormatter`
2016-03-01 15:48:15 +00:00
Jordi Boggiano
973d3ca7ae Fix race condition in rotating file handler, fixes #709 2016-03-01 15:44:46 +00:00
Jordi Boggiano
6079ae8bfb Merge remote-tracking branch 'origin/1.0' into 1.x 2016-03-01 15:40:28 +00:00
Jordi Boggiano
fb314292ab Merge pull request #727 from greg0ire/set_release_for_all_logs
add release number to every log
2016-02-24 18:37:37 +00:00
Jordi Boggiano
cb2778ae77 Add ->withName to clone a handler and get a new name, fixes #730 2016-02-13 16:47:31 +00:00
Grégoire Paris
f1a59c5e0f add release number to every log
This adds an internal release number to the raven handler. The release
number is added to what is sent to sentry unless something already is
present because a release number was sent via "context" or "extra".
2016-01-23 23:00:37 +01:00
Jordi Boggiano
79817af0de Merge pull request #725 from eexit/1.x
Allow GroupHandler to set a formatter to all nested handlers
2016-01-22 18:13:50 +00:00
Joris Berthelot
bf82600f0c Allow GroupHandler to set a formatter to all nested handlers 2016-01-21 12:50:15 +01:00
Jordi Boggiano
6a35f7387b Merge pull request #723 from damour/raven_fingerprint
Raven client fingerprint support
2016-01-20 10:14:19 +00:00
Dmitriy Garanzha
e2a77060da Raven client fingerprint support 2016-01-20 11:39:44 +02:00
Javier Spagnoletti
e8e1d9efa3 Add ability to include exception's stack traces in Monolog\Formatter\JsonFormatter
| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |
2015-12-31 11:24:28 -03:00
Jordi Boggiano
592af02d0c Clean up alias 2015-12-18 18:24:15 +00:00
Jordi Boggiano
baca9641ba Update branch alias in 1.0 2015-12-18 18:18:28 +00:00
Jordi Boggiano
3a41aa08c4 Docblock fixes 2015-12-18 17:48:21 +00:00
Jordi Boggiano
205f528f5b Merge pull request #701 from robbieaverill/feature/dont-repeat-yourself
DRY: Use constants for level codes instead of re-defining
2015-12-16 18:41:23 +00:00
Robbie Averill
ea2bef43a9 DRY: Use constants for level codes instead of re-defining 2015-12-16 09:34:12 +13:00
Jordi Boggiano
cab3ff71ff Add regression test for #691 and optimize implementation using a single pass loop over the handlers, refs #692 2015-11-26 23:48:42 +00:00
Jordi Boggiano
d4ae6ccffd Merge remote-tracking branch 'mttjohnson/master' 2015-11-26 23:39:59 +00:00
Matt Johnson
73876ace65 Changed iterating over the $handlers array to allow for correct sequential processing regardless of array containing indexed numerical keys, or associative string keys in the array.
It iterates over the entire array until it finds the $handlerKey that was identified earlier using isHandling(). Once the starting position is found it will execute handle() on each handler unless a handler returns true indicating the handler completed the processing of the record, bubbling to the next handler should not occur, and the loop breaks.

This fixes an issue where an associative array of handlers is passed into the Logger constructor when instantiated.
magento/magento2#2529
Seldaek/monolog#691
2015-11-26 02:33:02 -06:00
Jordi Boggiano
055125a98d Merge pull request #690 from reedy/reedy-createHandler-param-count
Remove excess parameter from createHandler
2015-11-21 00:43:47 +00:00
Sam Reed
e5bb0bf98a Remove excess parameter from createHandler
It only takes 3 parameters
2015-11-20 14:43:25 +00:00
Jordi Boggiano
7d20351afc Update branch alias 2015-11-18 18:03:10 +00:00
Jordi Boggiano
7e709c05f6 throwEncodeError does not return, refs #683 2015-11-18 17:57:11 +00:00
Jordi Boggiano
0178fd4f09 CS fixes, refs #683 2015-11-18 17:53:15 +00:00
Jordi Boggiano
9532e979b6 Merge remote-tracking branch 'bd808/feature/clean-json' 2015-11-18 17:50:41 +00:00
Jordi Boggiano
bc2bdedcc2 Merge pull request #676 from kornrunner/master
mongodb/mongodb support
2015-11-18 17:18:56 +00:00
Jordi Boggiano
b3f1d9a792 Add note about payload context var, refs #687 2015-11-18 17:17:24 +00:00
Jordi Boggiano
5ee8529a7a Merge pull request #687 from edvardasd/master
Pass payload information to RollbarHandler on report_message.
2015-11-18 17:14:45 +00:00
Jordi Boggiano
64f6c3d916 Adjust docblocks, refs #686 #685 2015-11-18 17:14:09 +00:00
Jordi Boggiano
0880801b4a Merge pull request #686 from apfelbox/hipchat-from
[HipChatHandler] Always send the "from" name
2015-11-18 17:12:52 +00:00
Jordi Boggiano
665453d06a Use json_encode for the whole message formatting, refs #686 2015-11-18 17:11:02 +00:00
Jordi Boggiano
c889fb2648 CS fixes & upgrading cs fixer config 2015-11-18 17:09:46 +00:00
Jordi Boggiano
75ca9e5dc7 Merge remote-tracking branch 'fordnox/master' 2015-11-18 17:01:29 +00:00
Jordi Boggiano
c14b6439fc Merge pull request #681 from glensc/mail-tests
add tests for NativeMailerHandler
2015-11-18 16:47:19 +00:00
Jannik Zschiesche
538349c4c4 Fixed HipChat tests 2015-11-18 10:25:09 +01:00
Jannik Zschiesche
fa38530fdc Always append "from" field when sending to HipChat 2015-11-18 10:25:04 +01:00
Edvardas Daukšas
c5465b8e1a Pass payload information to RollbarHandler on report_message. 2015-11-18 10:59:57 +02:00
Jannik Zschiesche
45d243f0ab Always send the "from" name in the hipchat handler 2015-11-17 18:52:08 +01:00
fordnox
034e895a6d Do not include message levels if it is already included in tag 2015-11-15 21:23:25 +02:00
fordnox
6abfc22762 Fix Fluentd array notation to support older PHP versions 2015-11-15 20:46:26 +02:00
fordnox
a5552dd34d Add fluentd formatter. 2015-11-15 20:39:30 +02:00
Bryan Davis
6f9e221bd6 Attempt to recover from json encoding errors
Detect and attempt to recover from json_encode errors triggered by
strings containing invalid UTF-8 sequences. Recovery will only be
attempted when encoding strings or arrays. If recovery fails then
a RuntimeException will be thrown.

The recovery process will convert invalid UTF-8 codepoints as though the
input string was encoded using the ISO-8859-15 character encoding. This
conversion may result in incorrect string output if the original
encoding was not ISO-8859-15, but it will be a valid UTF-8 string.

Closes #545
2015-11-12 10:59:27 -07:00
Jordi Boggiano
f86e643a58 Merge pull request #677 from chriseskow/patch-1
Add PsrLogMessageProcessor to documentation
2015-11-11 15:24:54 +00:00
Elan Ruusamäe
2e03107b56 add tests for NativeMailerHandler 2015-11-09 19:26:58 +02:00
Jordi Boggiano
9ba1658bec Merge pull request #680 from glensc/spelling
info is uncountable
2015-11-09 17:00:52 +00:00
Elan Ruusamäe
a5c56fdf1e two more minor spelling fixes 2015-11-09 18:21:29 +02:00
Elan Ruusamäe
b72866e6dd info is uncountable 2015-11-09 18:17:39 +02:00
Jordi Boggiano
432f44668e Merge pull request #679 from glensc/patch-1
Update NativeMailerHandler.php
2015-11-09 14:53:39 +00:00
Elan Ruusamäe
745100db42 Update NativeMailerHandler.php
don't calculate parameters in a loop
2015-11-09 11:08:56 +02:00