Project

General

Profile

Actions

Bug #81377

closed

Possible Bug in LogManager

Added by Kai Tallafus almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
-- undefined --
Assignee:
-
Category:
Logging
Target version:
-
Start date:
2017-05-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

I tried configuring logging for an extension:

$GLOBALS['TYPO3_CONF_VARS']['LOG']['MyVendor']['MyExtension']['Command']['FooCommandController']['writerConfiguration'] = array(
    \TYPO3\CMS\Core\Log\LogLevel::ERROR => array(
        // add a FileWriter
        'TYPO3\\CMS\\Core\\Log\\Writer\\FileWriter' => array(
            // configuration for the writer
            'logFile' => 'typo3temp/logs/my_foo_command.log'
        )
    )
);

But the logging allways ended up in a file named like the $defaultLogFileTemplate definied in FileWriter.

Looking at LogManager::getConfigurationForLogger(), I found out that my configuration is resolved correctly, but obviously not returned. At least that´s what it looks like to me. The method allways returns $result, which contains the top level configuration, not the resolved configuration stored in $configuration.

Could someone check this?

Actions

Also available in: Atom PDF