From 887f1563fdfb383b94a2e08ef0118d980fc4b905 Mon Sep 17 00:00:00 2001 From: Luka Stocker Date: Thu, 21 Sep 2023 11:57:08 +0200 Subject: [PATCH] Component: adjust global for logger regarding ilComponentUpdatePluginObjective setup. (#37960) --- .../Setup/class.ilComponentUpdatePluginObjective.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Services/Component/classes/Setup/class.ilComponentUpdatePluginObjective.php b/Services/Component/classes/Setup/class.ilComponentUpdatePluginObjective.php index aaa6c8a4cc02..9f587283cd1f 100644 --- a/Services/Component/classes/Setup/class.ilComponentUpdatePluginObjective.php +++ b/Services/Component/classes/Setup/class.ilComponentUpdatePluginObjective.php @@ -190,7 +190,7 @@ public function writeMemoryPeakUsage(int $a_level): void { } }; - $GLOBALS["DIC"]["ilLog"] = new class () extends ilLog { + $GLOBALS["DIC"]["ilLog"] = new class () extends ilLogger { public function __construct() { } @@ -219,11 +219,11 @@ public function __construct() } public static function getRootLogger(): ilLogger { - return $GLOBALS["DIC"]["ilLogger"]; + return $GLOBALS["DIC"]["ilLog"]; } public static function getLogger(string $a_component_id): ilLogger { - return $GLOBALS["DIC"]["ilLogger"]; + return $GLOBALS["DIC"]["ilLog"]; } }; $GLOBALS["ilLog"] = $GLOBALS["DIC"]["ilLog"];