WriterInterface
in
Log writer interface
Tags
Table of Contents
Methods
- getContext() : string
- Determine
- getLogLimit() : int|null
- Get log limit
- hasLogLimit() : bool
- Has log limit
- isWithinLogLimit() : bool
- Check if a log level is within the set log level limit
- setLogLimit() : WriterInterface
- Set log limit
- writeLog() : WriterInterface
- Write to the log
Methods
getContext()
Determine
public
getContext([array<string|int, mixed> $context = [] ]) : string
Parameters
- $context : array<string|int, mixed> = []
Return values
stringgetLogLimit()
Get log limit
public
getLogLimit() : int|null
Return values
int|nullhasLogLimit()
Has log limit
public
hasLogLimit() : bool
Return values
boolisWithinLogLimit()
Check if a log level is within the set log level limit
public
isWithinLogLimit(int $level) : bool
Parameters
- $level : int
Return values
boolsetLogLimit()
Set log limit
public
setLogLimit(int $level) : WriterInterface
Parameters
- $level : int
Return values
WriterInterfacewriteLog()
Write to the log
public
writeLog(mixed $level, string $message[, array<string|int, mixed> $context = [] ]) : WriterInterface
Parameters
- $level : mixed
- $message : string
- $context : array<string|int, mixed> = []