- /**
- * Create a Logger, which implements the LoggerInterface
- *
- * Same as:
- * $loggerFactory = new Factory\LoggerFactory();
- * $logger = $loggerFactory->create($channel, $configuration, $profiler);
- *
- * Attention1: We can use DICE for detecting dependencies inside "chained" calls too
- * Attention2: The variable "$channel" is passed inside the creation of the dependencies per:
- * $app = $dice->create(App::class, [], ['$channel' => 'index']);
- * and is automatically passed as an argument with the same name
- */
- LoggerInterface::class => [
- 'instanceOf' => Factory\LoggerFactory::class,
- 'constructParams' => [
- 'index',
+ \Psr\Log\LoggerInterface::class => [
+ 'instanceOf' => \Friendica\Core\Logger\Factory\Logger::class,
+ 'call' => [
+ ['create', [], Dice::CHAIN_CALL],
+ ],
+ ],
+ \Friendica\Core\Logger\Type\SyslogLogger::class => [
+ 'instanceOf' => \Friendica\Core\Logger\Factory\SyslogLogger::class,
+ 'call' => [
+ ['create', [], Dice::CHAIN_CALL],