PocketMine-MP 5.19.1 git-5cc1068cd43264d3363295eb8d6901e02f467897
|
Public Member Functions | |
alert ($message) | |
critical ($message) | |
debug ($message) | |
emergency ($message) | |
error ($message) | |
info ($message) | |
log ($level, $message) | |
logException (\Throwable $e, $trace=null) | |
notice ($message) | |
warning ($message) | |
Definition at line 20 of file SimpleLogger.php.
SimpleLogger::alert | ( | $message | ) |
Action must be taken immediately
string | $message |
Implements Logger.
Definition at line 25 of file SimpleLogger.php.
References log().
SimpleLogger::critical | ( | $message | ) |
Critical conditions
string | $message |
Implements Logger.
Definition at line 29 of file SimpleLogger.php.
References log().
Referenced by logException().
SimpleLogger::debug | ( | $message | ) |
Detailed debug information.
string | $message |
Implements Logger.
Definition at line 49 of file SimpleLogger.php.
References log().
SimpleLogger::emergency | ( | $message | ) |
System is unusable
string | $message |
Implements Logger.
Definition at line 21 of file SimpleLogger.php.
References log().
SimpleLogger::error | ( | $message | ) |
Runtime errors that do not require immediate action but should typically be logged and monitored.
string | $message |
Implements Logger.
Definition at line 33 of file SimpleLogger.php.
References log().
SimpleLogger::info | ( | $message | ) |
Interesting events.
string | $message |
Implements Logger.
Definition at line 45 of file SimpleLogger.php.
References log().
SimpleLogger::log | ( | $level, | |
$message | |||
) |
Logs with an arbitrary level.
mixed | $level | |
string | $message |
Implements Logger.
Reimplemented in pocketmine\plugin\PluginLogger, and PrefixedLogger.
Definition at line 53 of file SimpleLogger.php.
Referenced by alert(), critical(), debug(), emergency(), error(), info(), notice(), and warning().
SimpleLogger::logException | ( | \Throwable | $e, |
$trace = null |
|||
) |
Logs a Throwable object
Throwable | $e | |
array | null | $trace | @phpstan-param list<array<string, mixed>>|null $trace |
Implements Logger.
Definition at line 57 of file SimpleLogger.php.
References critical().
SimpleLogger::notice | ( | $message | ) |
Normal but significant events.
string | $message |
Implements Logger.
Definition at line 41 of file SimpleLogger.php.
References log().
SimpleLogger::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 37 of file SimpleLogger.php.
References log().