PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
Logger Interface Reference
+ Inheritance diagram for Logger:
+ Collaboration diagram for Logger:

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 18 of file Logger.php.

Member Function Documentation

◆ alert()

Logger::alert (   $message)

Action must be taken immediately

Parameters
string$message
Returns
void

Implemented in pocketmine\utils\MainLogger, and SimpleLogger.

◆ critical()

Logger::critical (   $message)

Critical conditions

Parameters
string$message
Returns
void

Implemented in pocketmine\utils\MainLogger, and SimpleLogger.

Referenced by pocketmine\resourcepacks\ResourcePackManager\__construct().

+ Here is the caller graph for this function:

◆ debug()

Logger::debug (   $message)

Detailed debug information.

Parameters
string$message
Returns
void

Implemented in SimpleLogger.

Referenced by pocketmine\resourcepacks\ResourcePackManager\__construct().

+ Here is the caller graph for this function:

◆ emergency()

Logger::emergency (   $message)

System is unusable

Parameters
string$message
Returns
void

Implemented in pocketmine\utils\MainLogger, and SimpleLogger.

◆ error()

Logger::error (   $message)

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

Parameters
string$message
Returns
void

Implemented in pocketmine\utils\MainLogger, and SimpleLogger.

Referenced by pocketmine\world\format\io\leveldb\LevelDB\getAllChunks(), and pocketmine\world\format\io\region\RegionWorldProvider\getAllChunks().

+ Here is the caller graph for this function:

◆ info()

Logger::info (   $message)

Interesting events.

Parameters
string$message
Returns
void

Implemented in pocketmine\utils\MainLogger, and SimpleLogger.

Referenced by pocketmine\resourcepacks\ResourcePackManager\__construct().

+ Here is the caller graph for this function:

◆ log()

Logger::log (   $level,
  $message 
)

Logs with an arbitrary level.

Parameters
mixed$level
string$message
Returns
void

Implemented in pocketmine\plugin\PluginLogger, pocketmine\utils\MainLogger, PrefixedLogger, and SimpleLogger.

◆ logException()

Logger::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

Implemented in pocketmine\utils\MainLogger, and SimpleLogger.

◆ notice()

Logger::notice (   $message)

Normal but significant events.

Parameters
string$message
Returns
void

Implemented in pocketmine\utils\MainLogger, and SimpleLogger.

◆ warning()

Logger::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

Implemented in pocketmine\utils\MainLogger, and SimpleLogger.

Referenced by pocketmine\emit_performance_warnings().

+ Here is the caller graph for this function:

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