ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 24 of file LoggingServices.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 28 of file LoggingServices.php.

References ILIAS\DI\LoggingServices\$container.

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

Member Function Documentation

◆ __call()

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

Get a component logger.

Returns

Definition at line 46 of file LoggingServices.php.

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

◆ root()

ILIAS\DI\LoggingServices::root ( )

Get interface to the global logger.

Returns

Definition at line 37 of file LoggingServices.php.

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

Field Documentation

◆ $container

Container ILIAS\DI\LoggingServices::$container
protected

Definition at line 26 of file LoggingServices.php.

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


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