[TASK] Inject requestId into LogRecords 38/55938/3
authorBenjamin Franzke <bfr@qbus.de>
Sun, 18 Feb 2018 20:11:21 +0000 (21:11 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 28 Feb 2018 16:02:45 +0000 (17:02 +0100)
commitc58e8da7d72e1547cd834d286e1f4a73724b6787
treedac234a3f564f8506030fb6d14a97fbe87585a7b
parent2db77448d845a41cc584bc0f79e1fea0be41a0e2
[TASK] Inject requestId into LogRecords

Do not use global state from Bootstrap::getInstance(), rather pass
the requestId from LogManager through the Logger to the LogRecord.

We do not have a core object container yet, therefore Bootstrap now
creates a LogManager, injects the requestId and stores that instance
as singleton in the GeneralUtility singleton storage.

Change-Id: Ia9af3c3a0e029a3748045fcf73e92f874f4a37ba
Releases: master
Resolves: #84082
Reviewed-on: https://review.typo3.org/55938
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Classes/Log/LogManager.php
typo3/sysext/core/Classes/Log/LogRecord.php
typo3/sysext/core/Classes/Log/Logger.php
typo3/sysext/core/Tests/Functional/Log/Writer/DatabaseWriterTest.php