[BUGFIX] FileLogWriter ignores log file configuration 25/21325/2
authorSteffen Müller <typo3@t3node.com>
Thu, 6 Jun 2013 13:42:17 +0000 (15:42 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Thu, 13 Jun 2013 15:37:10 +0000 (17:37 +0200)
commit1390b9a4a39d4d94f8b7065180ce55662d82ee53
tree5a29c5294d5d4b8ef57fa555754faddb1c6286bd
parent8fc4c1f1c9fccc452b3de4758fe6c195b3b62f73
[BUGFIX] FileLogWriter ignores log file configuration

If there are several instances of TYPO3\CMS\Core\Log\Writer\FileLogWriter
with different log files configured in $logFile, all log records end up
in one file.

This is caused by improper use of static variable $logFileHandle.
All filehandles except the one of the latest instance are ignored.

Resolves: #48918
Releases: 6.2, 6.1, 6.0
Change-Id: Ie6de5e4789d107b541117daf6c7e9855015e0a46
Reviewed-on: https://review.typo3.org/21325
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Log/Writer/FileWriter.php
typo3/sysext/core/Tests/Unit/Log/Writer/FileTest.php