Logger
Less than 1 minute
Logger
- Full name:
\Hazaar\Warlock\Server\Logger
Properties
logLevel
private static int $logLevel
- This property is static.
__logLevel
private int $__logLevel
__levels
private int[] $__levels
__strPad
private int $__strPad
Methods
__construct
public __construct(null|int|string $level = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$level | null|int|string |
setDefaultLogLevel
public static setDefaultLogLevel(int|string $level): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$level | int|string |
getDefaultLogLevel
public static getDefaultLogLevel(): int
- This method is static.
write
public write(int $level, string[]|\stdClass $message, ?string $task = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$level | int | |
$message | string[]|\stdClass | |
$task | ?string |
setLevel
public setLevel(null|int|string $level = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$level | null|int|string |
getLevel
public getLevel(): int
getLevelName
public getLevelName(): string
Automatically generated on 2024-11-14