ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\DI\LoggingServices Class Reference

Provides fluid interface to LoggingServices. More...

+ Inheritance diagram for ILIAS\DI\LoggingServices:
+ Collaboration diagram for ILIAS\DI\LoggingServices:

Public Member Functions

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

Protected Attributes

Container $container
 

Detailed Description

Provides fluid interface to LoggingServices.

Definition at line 23 of file LoggingServices.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 27 of file LoggingServices.php.

References ILIAS\DI\LoggingServices\$container.

28  {
29  $this->container = $container;
30  }

Member Function Documentation

◆ __call()

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

Get a component logger.

Returns

Definition at line 45 of file LoggingServices.php.

46  {
47  assert(count($args) === 0);
48  return $this->container['ilLoggerFactory']->getComponentLogger($method_name);
49  }

◆ root()

ILIAS\DI\LoggingServices::root ( )

Get interface to the global logger.

Returns

Definition at line 36 of file LoggingServices.php.

37  {
38  return $this->container["ilLoggerFactory"]->getRootLogger();
39  }

Field Documentation

◆ $container

Container ILIAS\DI\LoggingServices::$container
protected

Definition at line 25 of file LoggingServices.php.

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


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