From ddeef9387fc77830815e5d4a38532e78845f7040 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 16 Jul 2023 18:38:41 +0200 Subject: [PATCH] improve hooks.config.php --- static/hooks.config.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/static/hooks.config.php b/static/hooks.config.php index 185bc5e485..bc235913c5 100644 --- a/static/hooks.config.php +++ b/static/hooks.config.php @@ -20,18 +20,20 @@ */ use Friendica\Core\Hooks\Capabilities\HookType as H; +use Friendica\Core\Logger\Type; +use Psr\Log; return [ H::STRATEGY => [ - \Psr\Log\LoggerInterface::class => [ - \Psr\Log\NullLogger::class => [''], - \Friendica\Core\Logger\Type\SyslogLogger::class => ['syslog'], - \Friendica\Core\Logger\Type\StreamLogger::class => ['stream'], + Log\LoggerInterface::class => [ + Log\NullLogger::class => [''], + Type\SyslogLogger::class => ['syslog'], + Type\StreamLogger::class => ['stream'], ], ], H::DECORATOR => [ - \Psr\Log\LoggerInterface::class => [ - \Friendica\Core\Logger\Type\ProfilerLogger::class, + Log\LoggerInterface::class => [ + Type\ProfilerLogger::class, ], ], ]; -- 2.39.5