ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
ILIAS\DI\LoggingServices Class Reference

Provides fluid interface to RBAC services. More...

+ Collaboration diagram for ILIAS\DI\LoggingServices:

Public Member Functions

 __construct (Container $container)
 
 root ()
 Get interface to the global logger. More...
 
 __call ($method_name, $args)
 Get a component logger. More...
 

Protected Attributes

 $container
 

Detailed Description

Provides fluid interface to RBAC services.

Definition at line 9 of file LoggingServices.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\DI\LoggingServices::__construct ( Container  $container)

Definition at line 15 of file LoggingServices.php.

References ILIAS\DI\LoggingServices\$container.

15  {
16  $this->container = $container;
17  }

Member Function Documentation

◆ __call()

ILIAS\DI\LoggingServices::__call (   $method_name,
  $args 
)

Get a component logger.

Returns

Definition at line 33 of file LoggingServices.php.

33  {
34  assert('count($args) === 0');
35  return $this->container["ilLoggerFactory"]->getLogger($method_name);
36  }

◆ root()

ILIAS\DI\LoggingServices::root ( )

Get interface to the global logger.

Returns

Definition at line 24 of file LoggingServices.php.

24  {
25  return $this->container["ilLoggerFactory"]->getRootLogger();
26  }

Field Documentation

◆ $container

ILIAS\DI\LoggingServices::$container
protected

Definition at line 13 of file LoggingServices.php.

Referenced by ILIAS\DI\LoggingServices\__construct().


The documentation for this class was generated from the following file: