Database
Less than 1 minute
Database
- Full name:
\Hazaar\Logger\Backend\Database
- Parent class:
\Hazaar\Logger\Backend
Properties
failed
private bool $failed
db
private \Hazaar\DBI\Adapter $db
Methods
init
public init(): void
write
public write(string $message, int $level = LOG_INFO, ?string $tag = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string | |
$level | int | |
$tag | ?string |
trace
public trace(): void
Inherited methods
__construct
public __construct(array|\Hazaar\Map $options): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$options | array|\Hazaar\Map |
init
public init(): void
postRun
public postRun(): void
setDefaultOption
public setDefaultOption(string $key, mixed $value): void
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | |
$value | mixed |
setOption
public setOption(string $key, mixed $value): void
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | |
$value | mixed |
getOption
public getOption(string $key): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
hasOption
public hasOption(string $key): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string |
getLogLevelId
public getLogLevelId(string $level): int
Parameters:
Parameter | Type | Description |
---|---|---|
$level | string |
getLogLevelName
public getLogLevelName(int $level): string
Parameters:
Parameter | Type | Description |
---|---|---|
$level | int |
getCapabilities
public getCapabilities(): string[]
can
public can(string $capability): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$capability | string |
addCapability
protected addCapability(string $capability): void
Parameters:
Parameter | Type | Description |
---|---|---|
$capability | string |
Automatically generated on 2024-11-14