improve hooks.config.php
This commit is contained in:
parent
7bfc3c0ae0
commit
ddeef9387f
1 changed files with 8 additions and 6 deletions
|
@ -20,18 +20,20 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Friendica\Core\Hooks\Capabilities\HookType as H;
|
use Friendica\Core\Hooks\Capabilities\HookType as H;
|
||||||
|
use Friendica\Core\Logger\Type;
|
||||||
|
use Psr\Log;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
H::STRATEGY => [
|
H::STRATEGY => [
|
||||||
\Psr\Log\LoggerInterface::class => [
|
Log\LoggerInterface::class => [
|
||||||
\Psr\Log\NullLogger::class => [''],
|
Log\NullLogger::class => [''],
|
||||||
\Friendica\Core\Logger\Type\SyslogLogger::class => ['syslog'],
|
Type\SyslogLogger::class => ['syslog'],
|
||||||
\Friendica\Core\Logger\Type\StreamLogger::class => ['stream'],
|
Type\StreamLogger::class => ['stream'],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
H::DECORATOR => [
|
H::DECORATOR => [
|
||||||
\Psr\Log\LoggerInterface::class => [
|
Log\LoggerInterface::class => [
|
||||||
\Friendica\Core\Logger\Type\ProfilerLogger::class,
|
Type\ProfilerLogger::class,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue