ILIAS  release_8 Revision v8.24
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
5namespace 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{
26
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}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:32
Provides fluid interface to LoggingServices.
__construct(Container $container)
root()
Get interface to the global logger.
__call(string $method_name, array $args)
Get a component logger.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Container.php:19