PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\plugin\PluginLogger Class Reference
+ Inheritance diagram for pocketmine\plugin\PluginLogger:
+ Collaboration diagram for pocketmine\plugin\PluginLogger:

Public Member Functions

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

Detailed Description

@phpstan-import-type LoggerAttachment from \AttachableLogger

Definition at line 31 of file PluginLogger.php.

Member Function Documentation

◆ addAttachment()

pocketmine\plugin\PluginLogger::addAttachment ( \Closure $attachment)

@phpstan-param LoggerAttachment $attachment

Implements AttachableLogger.

Definition at line 42 of file PluginLogger.php.

◆ alert()

SimpleLogger::alert ( $message)
inherited

Action must be taken immediately

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 25 of file SimpleLogger.php.

References SimpleLogger\log().

+ Here is the call graph for this function:

◆ critical()

SimpleLogger::critical ( $message)
inherited

Critical conditions

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 29 of file SimpleLogger.php.

References SimpleLogger\log().

Referenced by SimpleLogger\logException().

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

◆ debug()

SimpleLogger::debug ( $message)
inherited

Detailed debug information.

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 49 of file SimpleLogger.php.

References SimpleLogger\log().

+ Here is the call graph for this function:

◆ emergency()

SimpleLogger::emergency ( $message)
inherited

System is unusable

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 21 of file SimpleLogger.php.

References SimpleLogger\log().

+ Here is the call graph for this function:

◆ error()

SimpleLogger::error ( $message)
inherited

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 SimpleLogger\log().

+ Here is the call graph for this function:

◆ getAttachments()

pocketmine\plugin\PluginLogger::getAttachments ( )
Returns
\Closure[] @phpstan-return LoggerAttachment[]

Implements AttachableLogger.

Definition at line 57 of file PluginLogger.php.

◆ getPrefix()

PrefixedLogger::getPrefix ( )
inherited
Returns
string

Definition at line 41 of file PrefixedLogger.php.

◆ info()

SimpleLogger::info ( $message)
inherited

Interesting events.

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 45 of file SimpleLogger.php.

References SimpleLogger\log().

+ Here is the call graph for this function:

◆ log()

pocketmine\plugin\PluginLogger::log ( $level,
$message )

Logs with an arbitrary level.

Parameters
mixed$level
string$message
Returns
void

Reimplemented from PrefixedLogger.

Definition at line 61 of file PluginLogger.php.

◆ logException() [1/2]

PrefixedLogger::logException ( Throwable $e,
$trace = null )
inherited

Definition at line 34 of file PrefixedLogger.php.

◆ logException() [2/2]

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

Implements Logger.

Definition at line 57 of file SimpleLogger.php.

References SimpleLogger\critical().

+ Here is the call graph for this function:

◆ notice()

SimpleLogger::notice ( $message)
inherited

Normal but significant events.

Parameters
string$message
Returns
void

Implements Logger.

Definition at line 41 of file SimpleLogger.php.

References SimpleLogger\log().

+ Here is the call graph for this function:

◆ removeAttachment()

pocketmine\plugin\PluginLogger::removeAttachment ( \Closure $attachment)

@phpstan-param LoggerAttachment $attachment

Implements AttachableLogger.

Definition at line 49 of file PluginLogger.php.

◆ removeAttachments()

pocketmine\plugin\PluginLogger::removeAttachments ( )
Returns
void

Implements AttachableLogger.

Definition at line 53 of file PluginLogger.php.

◆ setPrefix()

PrefixedLogger::setPrefix ( string $prefix)
inherited
Parameters
string$prefix

Definition at line 48 of file PrefixedLogger.php.

◆ warning()

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

Implements Logger.

Definition at line 37 of file SimpleLogger.php.

References SimpleLogger\log().

+ Here is the call graph for this function:

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