Properties

$records

$records : array

Type

array

$recordsByLevel

$recordsByLevel

Methods

emergency()

emergency(string  $message, array  $context = array()) : void

System is unusable.

Parameters

string $message
array $context

alert()

alert(string  $message, array  $context = array()) : void

Action must be taken immediately.

Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.

Parameters

string $message
array $context

critical()

critical(string  $message, array  $context = array()) : void

Critical conditions.

Example: Application component unavailable, unexpected exception.

Parameters

string $message
array $context

error()

error(string  $message, array  $context = array()) : void

Runtime errors that do not require immediate action but should typically be logged and monitored.

Parameters

string $message
array $context

warning()

warning(string  $message, array  $context = array()) : void

Exceptional occurrences that are not errors.

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.

Parameters

string $message
array $context

notice()

notice(string  $message, array  $context = array()) : void

Normal but significant events.

Parameters

string $message
array $context

info()

info(string  $message, array  $context = array()) : void

Interesting events.

Example: User logs in, SQL logs.

Parameters

string $message
array $context

debug()

debug(string  $message, array  $context = array()) : void

Detailed debug information.

Parameters

string $message
array $context

log()

log(mixed  $level, mixed  $message, array  $context = []) : mixed

Parameters

mixed $level
mixed $message
array $context

Returns

mixed —

hasRecords()

hasRecords(mixed  $level) : mixed

Parameters

mixed $level

Returns

mixed —

hasRecord()

hasRecord(mixed  $record, mixed  $level) : mixed

Parameters

mixed $record
mixed $level

Returns

mixed —

hasRecordThatContains()

hasRecordThatContains(mixed  $message, mixed  $level) : mixed

Parameters

mixed $message
mixed $level

Returns

mixed —

hasRecordThatMatches()

hasRecordThatMatches(mixed  $regex, mixed  $level) : mixed

Parameters

mixed $regex
mixed $level

Returns

mixed —

hasRecordThatPasses()

hasRecordThatPasses(callable  $predicate, mixed  $level) : mixed

Parameters

callable $predicate
mixed $level

Returns

mixed —

__call()

__call(mixed  $method, mixed  $args) : mixed

Parameters

mixed $method
mixed $args

Returns

mixed —

reset()

reset() : mixed

Returns

mixed —

hasEmergency()

hasEmergency(mixed  $record) : bool

Parameters

mixed $record

Returns

bool —

hasAlert()

hasAlert(mixed  $record) : bool

Parameters

mixed $record

Returns

bool —

hasCritical()

hasCritical(mixed  $record) : bool

Parameters

mixed $record

Returns

bool —

hasError()

hasError(mixed  $record) : bool

Parameters

mixed $record

Returns

bool —

hasWarning()

hasWarning(mixed  $record) : bool

Parameters

mixed $record

Returns

bool —

hasNotice()

hasNotice(mixed  $record) : bool

Parameters

mixed $record

Returns

bool —

hasInfo()

hasInfo(mixed  $record) : bool

Parameters

mixed $record

Returns

bool —

hasDebug()

hasDebug(mixed  $record) : bool

Parameters

mixed $record

Returns

bool —

hasEmergencyRecords()

hasEmergencyRecords() : bool

Returns

bool —

hasAlertRecords()

hasAlertRecords() : bool

Returns

bool —

hasCriticalRecords()

hasCriticalRecords() : bool

Returns

bool —

hasErrorRecords()

hasErrorRecords() : bool

Returns

bool —

hasWarningRecords()

hasWarningRecords() : bool

Returns

bool —

hasNoticeRecords()

hasNoticeRecords() : bool

Returns

bool —

hasInfoRecords()

hasInfoRecords() : bool

Returns

bool —

hasDebugRecords()

hasDebugRecords() : bool

Returns

bool —

hasEmergencyThatContains()

hasEmergencyThatContains(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasAlertThatContains()

hasAlertThatContains(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasCriticalThatContains()

hasCriticalThatContains(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasErrorThatContains()

hasErrorThatContains(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasWarningThatContains()

hasWarningThatContains(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasNoticeThatContains()

hasNoticeThatContains(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasInfoThatContains()

hasInfoThatContains(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasDebugThatContains()

hasDebugThatContains(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasEmergencyThatMatches()

hasEmergencyThatMatches(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasAlertThatMatches()

hasAlertThatMatches(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasCriticalThatMatches()

hasCriticalThatMatches(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasErrorThatMatches()

hasErrorThatMatches(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasWarningThatMatches()

hasWarningThatMatches(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasNoticeThatMatches()

hasNoticeThatMatches(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasInfoThatMatches()

hasInfoThatMatches(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasDebugThatMatches()

hasDebugThatMatches(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasEmergencyThatPasses()

hasEmergencyThatPasses(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasAlertThatPasses()

hasAlertThatPasses(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasCriticalThatPasses()

hasCriticalThatPasses(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasErrorThatPasses()

hasErrorThatPasses(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasWarningThatPasses()

hasWarningThatPasses(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasNoticeThatPasses()

hasNoticeThatPasses(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasInfoThatPasses()

hasInfoThatPasses(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —

hasDebugThatPasses()

hasDebugThatPasses(mixed  $message) : bool

Parameters

mixed $message

Returns

bool —