ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 16 of file LoggingServices.php.

References ILIAS\DI\LoggingServices\$container.

17  {
18  $this->container = $container;
19  }

Member Function Documentation

◆ __call()

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

Get a component logger.

Returns

Definition at line 36 of file LoggingServices.php.

37  {
38  assert(count($args) === 0);
39  return $this->container["ilLoggerFactory"]->getLogger($method_name);
40  }

◆ root()

ILIAS\DI\LoggingServices::root ( )

Get interface to the global logger.

Returns

Definition at line 26 of file LoggingServices.php.

27  {
28  return $this->container["ilLoggerFactory"]->getRootLogger();
29  }

Field Documentation

◆ $container

ILIAS\DI\LoggingServices::$container
protected

Definition at line 14 of file LoggingServices.php.

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


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