improve hooks.config.php

This commit is contained in:
Philipp 2023-07-16 18:38:41 +02:00
parent 7bfc3c0ae0
commit ddeef9387f
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432

View File

@ -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,
],
],
];