PocketMine-MP 5.15.1 git-fb9a74e8799c71ed8292cfa53abe7a4c9204629d
pocketmine\thread\log\AttachableThreadSafeLogger Class Reference
+ Inheritance diagram for pocketmine\thread\log\AttachableThreadSafeLogger:
+ Collaboration diagram for pocketmine\thread\log\AttachableThreadSafeLogger:

Public Member Functions

 addAttachment (ThreadSafeLoggerAttachment $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 (ThreadSafeLoggerAttachment $attachment)
 
 removeAttachments ()
 
 warning ($message)
 

Protected Attributes

ThreadSafeArray $attachments
 

Detailed Description

Definition at line 28 of file AttachableThreadSafeLogger.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\thread\log\AttachableThreadSafeLogger::__construct ( )

Definition at line 36 of file AttachableThreadSafeLogger.php.

Member Function Documentation

◆ addAttachment()

pocketmine\thread\log\AttachableThreadSafeLogger::addAttachment ( ThreadSafeLoggerAttachment  $attachment)

Definition at line 40 of file AttachableThreadSafeLogger.php.

◆ 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()

pocketmine\thread\log\AttachableThreadSafeLogger::getAttachments ( )
Returns
ThreadSafeLoggerAttachment[]

Definition at line 61 of file AttachableThreadSafeLogger.php.

◆ 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()

pocketmine\thread\log\AttachableThreadSafeLogger::removeAttachment ( ThreadSafeLoggerAttachment  $attachment)

Definition at line 44 of file AttachableThreadSafeLogger.php.

◆ removeAttachments()

pocketmine\thread\log\AttachableThreadSafeLogger::removeAttachments ( )

Definition at line 52 of file AttachableThreadSafeLogger.php.

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

Member Data Documentation

◆ $attachments

ThreadSafeArray pocketmine\thread\log\AttachableThreadSafeLogger::$attachments
protected

Definition at line 34 of file AttachableThreadSafeLogger.php.


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