PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
|
Public Member Functions | |
__construct (?string $logFile, bool $useFormattingCodes, string $mainThreadName, \DateTimeZone $timezone, bool $logDebug=false, ?string $logArchiveDir=null) | |
addAttachment (ThreadSafeLoggerAttachment $attachment) | |
alert ($message) | |
buffer (\Closure $c) | |
critical ($message) | |
debug ($message) | |
debug ($message, bool $force=false) | |
emergency ($message) | |
error ($message) | |
getAttachments () | |
getFormat () | |
info ($message) | |
log ($level, $message) | |
logException (\Throwable $e, $trace=null) | |
notice ($message) | |
removeAttachment (ThreadSafeLoggerAttachment $attachment) | |
removeAttachments () | |
setFormat (string $format) | |
setLogDebug (bool $logDebug) | |
shutdownLogWriterThread () | |
syncFlushBuffer () | |
warning ($message) | |
Protected Member Functions | |
send (string $message, string $level, string $prefix, string $color) | |
Protected Attributes | |
ThreadSafeArray | $attachments |
bool | $logDebug |
Definition at line 35 of file MainLogger.php.
pocketmine\utils\MainLogger::__construct | ( | ?string | $logFile, |
bool | $useFormattingCodes, | ||
string | $mainThreadName, | ||
\DateTimeZone | $timezone, | ||
bool | $logDebug = false, | ||
?string | $logArchiveDir = null ) |
pocketmine\utils\MainLogger::__destruct | ( | ) |
Definition at line 217 of file MainLogger.php.
|
inherited |
Definition at line 40 of file AttachableThreadSafeLogger.php.
pocketmine\utils\MainLogger::alert | ( | $message | ) |
Action must be taken immediately
string | $message |
Implements Logger.
Definition at line 87 of file MainLogger.php.
pocketmine\utils\MainLogger::buffer | ( | \Closure | $c | ) |
@phpstan-param \Closure() : void $c
Implements BufferedLogger.
Definition at line 166 of file MainLogger.php.
pocketmine\utils\MainLogger::critical | ( | $message | ) |
Critical conditions
string | $message |
Implements Logger.
Definition at line 91 of file MainLogger.php.
|
inherited |
Detailed debug information.
string | $message |
Implemented in SimpleLogger.
Referenced by pocketmine\resourcepacks\ResourcePackManager\__construct().
pocketmine\utils\MainLogger::debug | ( | $message, | |
bool | $force = false ) |
Definition at line 111 of file MainLogger.php.
pocketmine\utils\MainLogger::emergency | ( | $message | ) |
System is unusable
string | $message |
Implements Logger.
Definition at line 83 of file MainLogger.php.
pocketmine\utils\MainLogger::error | ( | $message | ) |
Runtime errors that do not require immediate action but should typically be logged and monitored.
string | $message |
Implements Logger.
Definition at line 95 of file MainLogger.php.
|
inherited |
Definition at line 61 of file AttachableThreadSafeLogger.php.
pocketmine\utils\MainLogger::getFormat | ( | ) |
Returns the current logger format used for console output.
Definition at line 64 of file MainLogger.php.
pocketmine\utils\MainLogger::info | ( | $message | ) |
Interesting events.
string | $message |
Implements Logger.
Definition at line 107 of file MainLogger.php.
pocketmine\utils\MainLogger::log | ( | $level, | |
$message ) |
Logs with an arbitrary level.
mixed | $level | |
string | $message |
Implements Logger.
Definition at line 134 of file MainLogger.php.
pocketmine\utils\MainLogger::logException | ( | \Throwable | $e, |
$trace = null ) |
mixed[][] | null | $trace | @phpstan-param list<array<string, mixed>>|null $trace |
Implements Logger.
Definition at line 128 of file MainLogger.php.
pocketmine\utils\MainLogger::notice | ( | $message | ) |
Normal but significant events.
string | $message |
Implements Logger.
Definition at line 103 of file MainLogger.php.
|
inherited |
Definition at line 44 of file AttachableThreadSafeLogger.php.
|
inherited |
Definition at line 52 of file AttachableThreadSafeLogger.php.
|
protected |
Definition at line 180 of file MainLogger.php.
pocketmine\utils\MainLogger::setFormat | ( | string | $format | ) |
Sets the logger format to use for outputting text to the console. It should be an sprintf()able string accepting 5 string arguments:
Definition at line 79 of file MainLogger.php.
pocketmine\utils\MainLogger::setLogDebug | ( | bool | $logDebug | ) |
Definition at line 118 of file MainLogger.php.
pocketmine\utils\MainLogger::shutdownLogWriterThread | ( | ) |
Definition at line 170 of file MainLogger.php.
pocketmine\utils\MainLogger::syncFlushBuffer | ( | ) |
Definition at line 213 of file MainLogger.php.
pocketmine\utils\MainLogger::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.
string | $message |
Implements Logger.
Definition at line 99 of file MainLogger.php.
|
protectedinherited |
Definition at line 34 of file AttachableThreadSafeLogger.php.
|
protected |
Definition at line 36 of file MainLogger.php.