ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
4namespace ILIAS\DI;
5
10{
14 protected $container;
15
17 {
18 $this->container = $container;
19 }
20
26 public function root()
27 {
28 return $this->container["ilLoggerFactory"]->getRootLogger();
29 }
30
36 public function __call($method_name, $args)
37 {
38 assert(count($args) === 0);
39 return $this->container["ilLoggerFactory"]->getLogger($method_name);
40 }
41}
An exception for terminatinating execution or to throw for unit testing.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:16
Provides fluid interface to RBAC services.
__construct(Container $container)
root()
Get interface to the global logger.
__call($method_name, $args)
Get a component logger.
Class HTTPServicesTest.