@@ -32,15 +32,62 @@ public function init(
3232 array | \ArrayAccess &$ pull ,
3333 array | \ArrayAccess &$ internal ,
3434 ): void {
35+ $ define [] = \ILIAS \Logging \LoggerFactory::class;
36+
37+ $ implement [\ILIAS \Logging \LoggerFactory::class] = static fn () =>
38+ $ internal [\ilLoggerFactory::class];
39+
3540 $ contribute [\ILIAS \Setup \Agent::class] = static fn () =>
3641 new \ilLoggingSetupAgent (
3742 $ pull [\ILIAS \Refinery \Factory::class]
3843 );
3944 $ contribute [\ILIAS \Cron \CronJob::class] = static fn () =>
4045 new \ilLoggerCronCleanErrorFiles (
41- ' components \\' . self ::class,
46+ self ::class,
4247 $ use [\ILIAS \Language \Language::class],
43- true
48+ $ use [\ ILIAS \ Logging \LoggerFactory::class]
4449 );
50+ $ internal [\ilLoggerFactory::class] = static fn () =>
51+ \ilLoggerFactory::getInstance (
52+ $ internal [\ilLoggingSettings::class]
53+ );
54+
55+ $ internal [\ilLoggingSettings::class] = static fn () =>
56+ new class () implements \ilLoggingSettings {
57+ public function isEnabled (): bool
58+ {
59+ return false ;
60+ }
61+ public function getLogDir (): string
62+ {
63+ }
64+ public function getLogFile (): string
65+ {
66+ }
67+ public function getLevel (): int
68+ {
69+ }
70+ public function getLevelByComponent (string $ a_component_id ): int
71+ {
72+ }
73+ public function getCacheLevel (): int
74+ {
75+ }
76+ public function isCacheEnabled (): bool
77+ {
78+ }
79+ public function isMemoryUsageEnabled (): bool
80+ {
81+ }
82+ public function isBrowserLogEnabled (): bool
83+ {
84+ }
85+ public function isBrowserLogEnabledForUser (string $ a_login ): bool
86+ {
87+ }
88+ public function getBrowserLogUsers (): array
89+ {
90+ }
91+ };
4592 }
4693}
0 commit comments