Issue Bug Closed

#81377Possible Bug in LogManager

Kai Tallafus 05/30/17, 12:51 updated 05/30/17, 13:52

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?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.