◆ __construct()
__construct |
( |
Plugin |
$context | ) |
|
- Parameters
-
63 $prefix = $context->getDescription()->getPrefix();
64 $this->pluginName = $prefix != null ?
"[$prefix] " :
"[" . $context->getDescription()->getName() .
"] ";
◆ addAttachment()
- Parameters
-
\LoggerAttachment | $attachment | |
Implements AttachableLogger.
38 $this->attachments[spl_object_hash($attachment)] = $attachment;
◆ alert()
◆ critical()
◆ debug()
◆ emergency()
◆ error()
◆ getAttachments()
◆ info()
◆ log()
- Parameters
-
mixed | $level | |
string | $message | |
Implements Logger.
137 foreach($this->attachments as $attachment){
138 $attachment->log($level, $message);
◆ logException()
logException |
( |
\Throwable |
$e, |
|
|
|
$trace = null |
|
) |
| |
◆ notice()
◆ removeAttachment()
- Parameters
-
\LoggerAttachment | $attachment | |
Implements AttachableLogger.
45 unset($this->attachments[spl_object_hash($attachment)]);
◆ removeAttachments()
◆ warning()
The documentation for this class was generated from the following file:
- src/pocketmine/plugin/PluginLogger.php