ILogger
in
Logger interface.
Table of Contents
Methods
- alert() : void
- critical() : void
- debug() : void
- emergency() : void
- error() : void
- getContext() : array<string|int, mixed>
- getRunLevel() : RunLevel
- info() : void
- log() : void
- notice() : void
- reset() : void
- setContext() : void
- Add a context value to the log. Contexts are prepended to each log entry.
- setRunLevel() : void
- setRunLevelText() : mixed
- Sets the run level by text.
- warning() : void
Methods
alert()
public
alert(string $text[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $text : string
- $context : array<string|int, mixed> = []
-
Optional context array
critical()
public
critical(string $text[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $text : string
- $context : array<string|int, mixed> = []
-
Optional context array
debug()
public
debug(string $text[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $text : string
- $context : array<string|int, mixed> = []
-
Optional context array
emergency()
public
emergency(string $text[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $text : string
- $context : array<string|int, mixed> = []
-
Optional context array
error()
public
error(string $text[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $text : string
- $context : array<string|int, mixed> = []
-
Optional context array
getContext()
public
getContext() : array<string|int, mixed>
Return values
array<string|int, mixed>getRunLevel()
public
getRunLevel() : RunLevel
Return values
RunLevelinfo()
public
info(string $text[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $text : string
- $context : array<string|int, mixed> = []
-
Optional context array
log()
public
log(string $text, RunLevel $level[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $text : string
- $level : RunLevel
- $context : array<string|int, mixed> = []
-
Optional context array
notice()
public
notice(string $text[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $text : string
- $context : array<string|int, mixed> = []
-
Optional context array
reset()
public
reset() : void
setContext()
Add a context value to the log. Contexts are prepended to each log entry.
public
setContext(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
-
Can be string, array, or other scalar/object types
setRunLevel()
public
setRunLevel(int $level) : void
Parameters
- $level : int
setRunLevelText()
Sets the run level by text.
public
setRunLevelText(string $level) : mixed
Valid values are: debug, info, notice, warning, error, critical, alert, emergency
Parameters
- $level : string
warning()
public
warning(string $text[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $text : string
- $context : array<string|int, mixed> = []
-
Optional context array