ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
LoggingServices.php
Go to the documentation of this file.
1 <?php
2 
19 namespace ILIAS\DI;
20 
25 {
26  protected Container $container;
27 
28  public function __construct(Container $container)
29  {
30  $this->container = $container;
31  }
32 
37  public function root()
38  {
39  return $this->container["ilLoggerFactory"]->getRootLogger();
40  }
41 
46  public function __call(string $method_name, array $args)
47  {
48  assert(count($args) === 0);
49  return $this->container['ilLoggerFactory']->getComponentLogger($method_name);
50  }
51 }
Provides fluid interface to LoggingServices.
__call(string $method_name, array $args)
Get a component logger.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Container.php:19
root()
Get interface to the global logger.
__construct(Container $container)