Logger
class Logger
Properties
protected string | $attrName | ||
protected array | $logs | ||
protected Tag | $tag |
Methods
void
add(string $type, string $msg, array $context)
Add a log entry
void
clear()
Clear the log
array
getLogs()
Return the logs
void
setAttribute(string $attrName)
Record the name of the attribute being processed
void
unsetAttribute()
Unset the name of the attribute being processed
void
unsetTag()
Unset the tag being processed
void
debug(string $msg, array $context = [])
Add a "debug" type log entry
void
err(string $msg, array $context = [])
Add an "err" type log entry
void
info(string $msg, array $context = [])
Add an "info" type log entry
void
warn(string $msg, array $context = [])
Add a "warn" type log entry
Details
at line 38
protected void
add(string $type, string $msg, array $context)
Add a log entry
at line 58
void
clear()
Clear the log
at line 70
array
getLogs()
Return the logs
at line 81
void
setAttribute(string $attrName)
Record the name of the attribute being processed
at line 92
void
setTag(Tag $tag)
Record the tag being processed
at line 102
void
unsetAttribute()
Unset the name of the attribute being processed
at line 112
void
unsetTag()
Unset the tag being processed
at line 128
void
debug(string $msg, array $context = [])
Add a "debug" type log entry
at line 140
void
err(string $msg, array $context = [])
Add an "err" type log entry
at line 152
void
info(string $msg, array $context = [])
Add an "info" type log entry
at line 164
void
warn(string $msg, array $context = [])
Add a "warn" type log entry