ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
LoggingServices.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 2016 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3 
4 namespace ILIAS\DI;
5 
13  protected $container;
14 
15  public function __construct(Container $container) {
16  $this->container = $container;
17  }
18 
24  public function root() {
25  return $this->container["ilLoggerFactory"]->getRootLogger();
26  }
27 
33  public function __call($method_name, $args) {
34  assert('count($args) === 0');
35  return $this->container["ilLoggerFactory"]->getLogger($method_name);
36  }
37 }
__call($method_name, $args)
Get a component logger.
Provides fluid interface to RBAC services.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:12
root()
Get interface to the global logger.
__construct(Container $container)