mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
LegacyLoggerFactory uses Logger as factory
This commit is contained in:
parent
b40db06ef3
commit
0804413c41
6 changed files with 67 additions and 32 deletions
|
@ -157,18 +157,19 @@ return (function(string $basepath, array $getVars, array $serverVars, array $coo
|
|||
],
|
||||
],
|
||||
\Psr\Log\LoggerInterface::class => [
|
||||
'instanceOf' => \Friendica\Core\Logger\Factory\Logger::class,
|
||||
'call' => [
|
||||
['create', [], Dice::CHAIN_CALL],
|
||||
],
|
||||
],
|
||||
'$LoggerInterface' => [
|
||||
'shared' => false,
|
||||
'instanceOf' => \Friendica\Core\Logger\LoggerManager::class,
|
||||
'call' => [
|
||||
['getLogger', [], Dice::CHAIN_CALL],
|
||||
],
|
||||
],
|
||||
\Friendica\Core\Logger\LoggerManager::class => [
|
||||
'substitutions' => [
|
||||
\Friendica\Core\Logger\Factory\LoggerFactory::class => \Friendica\Core\Logger\Factory\LegacyLoggerFactory::class,
|
||||
],
|
||||
],
|
||||
\Friendica\Core\Logger\Factory\LoggerFactory::class => [
|
||||
'instanceOf' => \Friendica\Core\Logger\Factory\LegacyLoggerFactory::class,
|
||||
],
|
||||
\Friendica\Core\Logger\Type\SyslogLogger::class => [
|
||||
'instanceOf' => \Friendica\Core\Logger\Factory\SyslogLogger::class,
|
||||
'call' => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue