#111585Drop SingletonInterface from LogManager
Description
LogManager still implements SingletonInterface. Bootstrap creates it and registers it as an early instance in the container, so the marker is not needed to make it shared or public.
The marker also causes a bug: Bootstrap creates the “core” and “di” caches before the container exists. The constructor of AbstractBackend calls GeneralUtility::makeInstance(LogManager::class), which creates a second LogManager with its own RequestId and caches it as singleton. All later makeInstance(LogManager::class) calls receive this second instance instead of the one in the container, so their log records carry a different request id than loggers injected via dependency injection.
The marker should be dropped, and Bootstrap should hand its LogManager to the early cache backends.
Follow-up of #110578 and #111467.
Reviews 2
History 02
-
Gerrit Code Review pushed patch set 1 for main to change 98016 status
NewUnder Review 11/25/26, 13:17 -
Gerrit Code Review pushed patch set 2 for main to change 98016 11/25/26, 13:59