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

Public Member Functions

 addAttachment (\Closure $attachment)
 
 alert ($message)
 
 critical ($message)
 
 debug ($message)
 
 emergency ($message)
 
 error ($message)
 
 getAttachments ()
 
 info ($message)
 
 log ($level, $message)
 
 logException (\Throwable $e, $trace=null)
 
 notice ($message)
 
 removeAttachment (\Closure $attachment)
 
 removeAttachments ()
 
 warning ($message)
 

Detailed Description

@phpstan-type LoggerAttachment \Closure(mixed $level, string $message) : void

Definition at line 21 of file AttachableLogger.php.

Member Function Documentation

◆ addAttachment()

AttachableLogger::addAttachment ( \Closure  $attachment)

@phpstan-param LoggerAttachment $attachment

Returns
void

Implemented in pocketmine\plugin\PluginLogger.

◆ alert()

Logger::alert (   $message)
inherited

Action must be taken immediately

Parameters
string$message
Returns
void

Implemented in pocketmine\utils\MainLogger, and SimpleLogger.

◆ critical()

Logger::critical (   $message)
inherited

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)
inherited

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)
inherited

System is unusable

Parameters
string$message
Returns
void

Implemented in pocketmine\utils\MainLogger, and SimpleLogger.

◆ error()

Logger::error (   $message)
inherited

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:

◆ getAttachments()

AttachableLogger::getAttachments ( )
Returns
\Closure[] @phpstan-return LoggerAttachment[]

Implemented in pocketmine\plugin\PluginLogger.

◆ info()

Logger::info (   $message)
inherited

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 
)
inherited

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 
)
inherited

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)
inherited

Normal but significant events.

Parameters
string$message
Returns
void

Implemented in pocketmine\utils\MainLogger, and SimpleLogger.

◆ removeAttachment()

AttachableLogger::removeAttachment ( \Closure  $attachment)

@phpstan-param LoggerAttachment $attachment

Returns
void

Implemented in pocketmine\plugin\PluginLogger.

◆ removeAttachments()

AttachableLogger::removeAttachments ( )
Returns
void

Implemented in pocketmine\plugin\PluginLogger.

◆ warning()

Logger::warning (   $message)
inherited

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: