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
setTag(Tag $tag)

Record the tag 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

Parameters

string $type
string $msg
array $context

Return Value

void

at line 58
void clear()

Clear the log

Return Value

void

at line 70
array getLogs()

Return the logs

Return Value

array

at line 81
void setAttribute(string $attrName)

Record the name of the attribute being processed

Parameters

string $attrName

Return Value

void

at line 92
void setTag(Tag $tag)

Record the tag being processed

Parameters

Tag $tag

Return Value

void

at line 102
void unsetAttribute()

Unset the name of the attribute being processed

Return Value

void

at line 112
void unsetTag()

Unset the tag being processed

Return Value

void

at line 128
void debug(string $msg, array $context = [])

Add a "debug" type log entry

Parameters

string $msg

Log message

array $context

Return Value

void

at line 140
void err(string $msg, array $context = [])

Add an "err" type log entry

Parameters

string $msg

Log message

array $context

Return Value

void

at line 152
void info(string $msg, array $context = [])

Add an "info" type log entry

Parameters

string $msg

Log message

array $context

Return Value

void

at line 164
void warn(string $msg, array $context = [])

Add a "warn" type log entry

Parameters

string $msg

Log message

array $context

Return Value

void