diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2015-09-10 10:50:02 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-09-22 02:20:58 +0300 |
commit | 8a910fb2f4e413f8dd0786ddb04d1d244cbd9ae9 (patch) | |
tree | eb993f0f4be5691572178176426c9f03938b5c30 /plugins/Monolog/config | |
parent | 949bc2b86f28ec8f8c070535422ab54d9ed3eb53 (diff) |
Split multi-line log messages into multiple log messages if file handler
is used
Diffstat (limited to 'plugins/Monolog/config')
-rw-r--r-- | plugins/Monolog/config/config.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Monolog/config/config.php b/plugins/Monolog/config/config.php index 6a7fb0130f..95463b91de 100644 --- a/plugins/Monolog/config/config.php +++ b/plugins/Monolog/config/config.php @@ -46,7 +46,10 @@ return array( 'Piwik\Plugins\Monolog\Handler\FileHandler' => DI\object() ->constructor(DI\get('log.file.filename'), DI\get('log.level')) - ->method('setFormatter', DI\get('Piwik\Plugins\Monolog\Formatter\LineMessageFormatter')), + ->method('setFormatter', DI\get('log.lineMessageFormatter.file')), + + 'log.lineMessageFormatter.file' => DI\object('Piwik\Plugins\Monolog\Formatter\LineMessageFormatter') + ->constructorParameter('allowInlineLineBreaks', false), 'Piwik\Plugins\Monolog\Handler\DatabaseHandler' => DI\object() ->constructor(DI\get('log.level')) |