Frontend
About 1 min
Frontend
- Full name:
\Hazaar\Logger\Frontend
Properties
level
private int $level
backend
private \Hazaar\Logger\Backend $backend
logger
private static ?\Hazaar\Logger\Frontend $logger
- This property is static.
message_buffer
private static array $message_buffer
- This property is static.
Methods
__construct
public __construct(int|string $level, ?string $backend = null, array|\Hazaar\Map $backend_options = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$level | int|string | |
$backend | ?string | |
$backend_options | array|\Hazaar\Map |
initialise
public static initialise(\Hazaar\Map $config): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$config | \Hazaar\Map |
destroy
public static destroy(): void
- This method is static.
write
public static write(string $message, int $level = E_NOTICE, ?string $tag = null): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string | |
$level | int | |
$tag | ?string |
e
Log an ERROR message.
public static e(string $message, ?string $tag = null): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string | |
$tag | ?string |
w
Log a WARNING message.
public static w(string $message, ?string $tag = null): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string | |
$tag | ?string |
n
Log a NOTICE message.
public static n(string $message, ?string $tag = null): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string | |
$tag | ?string |
i
Log a INFO message.
public static i(string $message, ?string $tag = null): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string | |
$tag | ?string |
d
Log a DEBUG message.
public static d(string $message, ?string $tag = null): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string | |
$tag | ?string |
trace
public static trace(): void
- This method is static.
writeLog
public writeLog(array|object|string $message, int $level = E_NOTICE, ?string $tag = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$message | array|object|string | |
$level | int | |
$tag | ?string |
backtrace
public backtrace(): void
close
public close(): void
Automatically generated on 2024-11-14