ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\components\Logging\NullLogger Class Reference
+ Inheritance diagram for ILIAS\components\Logging\NullLogger:
+ Collaboration diagram for ILIAS\components\Logging\NullLogger:

Public Member Functions

 __construct ()
 
 isHandling (int $level)
 Check whether current logger is handling a log level. More...
 
 log (string $message, int $level=ilLogLevel::INFO, array $context=[])
 
 dump ($value, int $level=ilLogLevel::INFO)
 
 debug (string $message, array $context=[])
 
 info (string $message, array $context=[])
 
 notice (string $message, array $context=[])
 
 warning (string $message, array $context=[])
 
 error (string $message, array $context=[])
 
 critical (string $message, array $context=[])
 
 alert (string $message, array $context=[])
 
 emergency (string $message, array $context=[])
 
 logStack (?int $level=null, string $message='', array $context=[])
 
 writeMemoryPeakUsage (int $level)
 
- Public Member Functions inherited from ilLogger
 __construct (private readonly LoggerInterface $logger)
 
 isHandling (int $level)
 Check whether current logger is handling a log level. More...
 
 log (string $message, int $level=ilLogLevel::INFO, array $context=[])
 
 dump ($value, int $level=ilLogLevel::INFO)
 
 debug (string $message, array $context=[])
 
 info (string $message, array $context=[])
 
 notice (string $message, array $context=[])
 
 warning (string $message, array $context=[])
 
 error (string $message, array $context=[])
 
 critical (string $message, array $context=[])
 
 alert (string $message, array $context=[])
 
 emergency (string $message, array $context=[])
 
 logStack (?int $level=null, string $message='', array $context=[])
 

Protected Member Functions

 getLogger ()
 @noinspection \PhpInconsistentReturnPointsInspection More...
 
 getLogger ()
 

Detailed Description

Deprecated:
If a null version of the new logger would be handy, let the Logging authorities know.

Definition at line 31 of file NullLogger.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\components\Logging\NullLogger::__construct ( )

Definition at line 33 of file NullLogger.php.

34 {
35 }

Member Function Documentation

◆ alert()

ILIAS\components\Logging\NullLogger::alert ( string  $message,
array  $context = [] 
)

Reimplemented from ilLogger.

Definition at line 74 of file NullLogger.php.

74 : void
75 {
76 }

◆ critical()

ILIAS\components\Logging\NullLogger::critical ( string  $message,
array  $context = [] 
)

Reimplemented from ilLogger.

Definition at line 70 of file NullLogger.php.

70 : void
71 {
72 }

◆ debug()

ILIAS\components\Logging\NullLogger::debug ( string  $message,
array  $context = [] 
)

Reimplemented from ilLogger.

Definition at line 50 of file NullLogger.php.

50 : void
51 {
52 }

◆ dump()

ILIAS\components\Logging\NullLogger::dump (   $value,
int  $level = ilLogLevel::INFO 
)

Reimplemented from ilLogger.

Definition at line 46 of file NullLogger.php.

46 : void
47 {
48 }

◆ emergency()

ILIAS\components\Logging\NullLogger::emergency ( string  $message,
array  $context = [] 
)

Reimplemented from ilLogger.

Definition at line 78 of file NullLogger.php.

78 : void
79 {
80 }

◆ error()

ILIAS\components\Logging\NullLogger::error ( string  $message,
array  $context = [] 
)

Reimplemented from ilLogger.

Definition at line 66 of file NullLogger.php.

66 : void
67 {
68 }

◆ getLogger()

ILIAS\components\Logging\NullLogger::getLogger ( )
protected

@noinspection \PhpInconsistentReturnPointsInspection

Reimplemented from ilLogger.

Definition at line 83 of file NullLogger.php.

83 : LoggerInterface
84 {
85 throw new Exception('Can not return monolog logger from a null logger.');
86 }

◆ info()

ILIAS\components\Logging\NullLogger::info ( string  $message,
array  $context = [] 
)

Reimplemented from ilLogger.

Definition at line 54 of file NullLogger.php.

54 : void
55 {
56 }

◆ isHandling()

ILIAS\components\Logging\NullLogger::isHandling ( int  $level)

Check whether current logger is handling a log level.

Reimplemented from ilLogger.

Definition at line 37 of file NullLogger.php.

37 : bool
38 {
39 return true;
40 }

◆ log()

ILIAS\components\Logging\NullLogger::log ( string  $message,
int  $level = ilLogLevel::INFO,
array  $context = [] 
)

Reimplemented from ilLogger.

Definition at line 42 of file NullLogger.php.

42 : void
43 {
44 }

◆ logStack()

ILIAS\components\Logging\NullLogger::logStack ( ?int  $level = null,
string  $message = '',
array  $context = [] 
)

Reimplemented from ilLogger.

Definition at line 88 of file NullLogger.php.

88 : void
89 {
90 }

◆ notice()

ILIAS\components\Logging\NullLogger::notice ( string  $message,
array  $context = [] 
)

Reimplemented from ilLogger.

Definition at line 58 of file NullLogger.php.

58 : void
59 {
60 }

◆ warning()

ILIAS\components\Logging\NullLogger::warning ( string  $message,
array  $context = [] 
)

Reimplemented from ilLogger.

Definition at line 62 of file NullLogger.php.

62 : void
63 {
64 }

◆ writeMemoryPeakUsage()

ILIAS\components\Logging\NullLogger::writeMemoryPeakUsage ( int  $level)

Definition at line 92 of file NullLogger.php.

92 : void
93 {
94 }

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