ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
LoggingServices.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2016 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
5 namespace ILIAS\DI;
6 
7 /******************************************************************************
8  *
9  * This file is part of ILIAS, a powerful learning management system.
10  *
11  * ILIAS is licensed with the GPL-3.0, you should have received a copy
12  * of said license along with the source code.
13  *
14  * If this is not the case or you just want to try ILIAS, you'll find
15  * us at:
16  * https://www.ilias.de
17  * https://github.com/ILIAS-eLearning
18  *
19  *****************************************************************************/
24 {
25  protected Container $container;
26 
27  public function __construct(Container $container)
28  {
29  $this->container = $container;
30  }
31 
36  public function root()
37  {
38  return $this->container["ilLoggerFactory"]->getRootLogger();
39  }
40 
45  public function __call(string $method_name, array $args)
46  {
47  assert(count($args) === 0);
48  return $this->container['ilLoggerFactory']->getComponentLogger($method_name);
49  }
50 }
Provides fluid interface to LoggingServices.
__call(string $method_name, array $args)
Get a component logger.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:31
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)