ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Psr\Log Namespace Reference

Namespaces

 Test
 

Data Structures

class  AbstractLogger
 This is a simple Logger implementation that other Loggers can inherit from. More...
 
class  InvalidArgumentException
 
interface  LoggerAwareInterface
 Describes a logger-aware instance. More...
 
interface  LoggerInterface
 Describes a logger instance. More...
 
class  LogLevel
 Describes log levels. More...
 
class  NullLogger
 This Logger can be used to avoid conditional log calls. More...
 

Functions

 setLogger (LoggerInterface $logger)
 Sets a logger. More...
 

Variables

trait LoggerAwareTrait
 Basic Implementation of LoggerAwareInterface. More...
 
trait LoggerTrait
 This is a simple Logger trait that classes unable to extend AbstractLogger (because they extend another class, etc) can include. More...
 

Function Documentation

◆ setLogger()

Psr\Log\setLogger ( LoggerInterface  $logger)

Sets a logger.

Parameters
LoggerInterface$logger

Definition at line 22 of file LoggerAwareTrait.php.

23  {
24  $this->logger = $logger;
25  }

Variable Documentation

◆ LoggerAwareTrait

trait Psr::Log\LoggerAwareTrait
Initial value:
{
protected $logger

Basic Implementation of LoggerAwareInterface.

Definition at line 9 of file LoggerAwareTrait.php.

◆ LoggerTrait

trait Psr::Log\LoggerTrait

This is a simple Logger trait that classes unable to extend AbstractLogger (because they extend another class, etc) can include.

It simply delegates all log-level-specific methods to the log method to reduce boilerplate code that a simple Logger that does the same thing with messages regardless of the error level has to implement.

Definition at line 14 of file LoggerTrait.php.