ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
LoggerFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Logging\Logger;
22
23use ILIAS\Logging\Config\ByComponent\ConfigInterface as ConfigByComponentInterface;
26
28{
29 public function __construct(
30 protected LazyInternalFactoryInterface $internal_factory,
31 protected ConfigByComponentInterface $config_by_component,
32 protected LevelFetcherFactoryInterface $level_fetcher_factory
33 ) {
34 }
35
36 public function getLazy(string $component_id): LoggerInterface
37 {
38 return $this->internal_factory->getLazyGhost(
39 $component_id,
40 $this->level_fetcher_factory->componentLevelFetcher($this->config_by_component, $component_id)
41 );
42 }
43}
__construct(protected LazyInternalFactoryInterface $internal_factory, protected ConfigByComponentInterface $config_by_component, protected LevelFetcherFactoryInterface $level_fetcher_factory)