[BUGFIX] FileLogWriter ignores log file configuration 58/21258/7
authorSteffen Müller <typo3@t3node.com>
Thu, 6 Jun 2013 13:42:17 +0000 (15:42 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Mon, 10 Jun 2013 15:59:28 +0000 (17:59 +0200)
commit34dc73da8fa92e31926ee6f4cfdaaef9ff3044fe
tree65cfe4f48fc1ca81b092ff9dab2439f5393c915a
parent3ad4be6d9084b560a05d079efbda49924f6c82b9
[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/21258
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
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