extends |
Log |
|---|---|
implements |
LoggerInterface |
uses |
LoggerTrait |
The default SimpleID logger.
This logger extends the logger included in the Fat-Free framework by implementing the PSR-3 specification. In addition, it retains the same log file format as per SimpleID 1.
You can replace this logger with any PSR-3 compliant logger.
| Methods | ||
|---|---|---|
public
|
__construct(array<string, mixed> $config)
|
# |
public
|
write(string $text, string $format = 'r')
|
# |
public
|
log(string $level, string $message, array<string, mixed> $context = [])
|
# |
| Properties | |||
|---|---|---|---|
protected
|
string
|
$log_level
|
# |
protected
static
|
array<string, int>
|
$log_levels = [
LogLevel::EMERGENCY => 0,
LogLevel::ALERT => 1,
LogLevel::CRITICAL => 2,
LogLevel::ERROR => 3,
LogLevel::WARNING => 4,
LogLevel::NOTICE => 5,
LogLevel::INFO => 6,
LogLevel::DEBUG => 7,
]
|
# |