PocketMine-MP 5.19.1 git-5cc1068cd43264d3363295eb8d6901e02f467897
SimpleLogger Class Reference
+ Inheritance diagram for SimpleLogger:
+ Collaboration diagram for SimpleLogger:

Public Member Functions

 alert ($message)
 
 critical ($message)
 
 debug ($message)
 
 emergency ($message)
 
 error ($message)
 
 info ($message)
 
 log ($level, $message)
 
 logException (\Throwable $e, $trace=null)
 
 notice ($message)
 
 warning ($message)
 

Detailed Description

Definition at line 20 of file SimpleLogger.php.

Member Function Documentation

◆ alert()

SimpleLogger::alert (   $message)

Action must be taken immediately

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 25 of file SimpleLogger.php.

References log().

+ Here is the call graph for this function:

◆ critical()

SimpleLogger::critical (   $message)

Critical conditions

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 29 of file SimpleLogger.php.

References log().

Referenced by logException().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ debug()

SimpleLogger::debug (   $message)

Detailed debug information.

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 49 of file SimpleLogger.php.

References log().

+ Here is the call graph for this function:

◆ emergency()

SimpleLogger::emergency (   $message)

System is unusable

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 21 of file SimpleLogger.php.

References log().

+ Here is the call graph for this function:

◆ error()

SimpleLogger::error (   $message)

Runtime errors that do not require immediate action but should typically be logged and monitored.

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 33 of file SimpleLogger.php.

References log().

+ Here is the call graph for this function:

◆ info()

SimpleLogger::info (   $message)

Interesting events.

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 45 of file SimpleLogger.php.

References log().

+ Here is the call graph for this function:

◆ log()

SimpleLogger::log (   $level,
  $message 
)

Logs with an arbitrary level.

Parameters
mixed$level
string$message
Returns
void

Implements Logger.

Reimplemented in pocketmine\plugin\PluginLogger, and PrefixedLogger.

Definition at line 53 of file SimpleLogger.php.

Referenced by alert(), critical(), debug(), emergency(), error(), info(), notice(), and warning().

+ Here is the caller graph for this function:

◆ logException()

SimpleLogger::logException ( \Throwable  $e,
  $trace = null 
)

Logs a Throwable object

Parameters
Throwable$e
array | null$trace@phpstan-param list<array<string, mixed>>|null $trace
Returns
void

Implements Logger.

Definition at line 57 of file SimpleLogger.php.

References critical().

+ Here is the call graph for this function:

◆ notice()

SimpleLogger::notice (   $message)

Normal but significant events.

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 41 of file SimpleLogger.php.

References log().

+ Here is the call graph for this function:

◆ warning()

SimpleLogger::warning (   $message)

Exceptional occurrences that are not errors.

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 37 of file SimpleLogger.php.

References log().

+ Here is the call graph for this function:

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