Properties

$records

$records : array

Type

array

$recordsByLevel

$recordsByLevel : 

Type

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(  $level,   $message, array  $context = array()) 

Parameters

$level
$message
array $context

hasRecords()

hasRecords(  $level) 

Parameters

$level

hasRecord()

hasRecord(  $record,   $level) 

Parameters

$record
$level

hasRecordThatContains()

hasRecordThatContains(  $message,   $level) 

Parameters

$message
$level

hasRecordThatMatches()

hasRecordThatMatches(  $regex,   $level) 

Parameters

$regex
$level

hasRecordThatPasses()

hasRecordThatPasses(callable  $predicate,   $level) 

Parameters

callable $predicate
$level

__call()

__call(  $method,   $args) 

Parameters

$method
$args

reset()

reset() 

hasEmergency()

hasEmergency(mixed  $record) : boolean

Parameters

mixed $record

Returns

boolean

hasAlert()

hasAlert(mixed  $record) : boolean

Parameters

mixed $record

Returns

boolean

hasCritical()

hasCritical(mixed  $record) : boolean

Parameters

mixed $record

Returns

boolean

hasError()

hasError(mixed  $record) : boolean

Parameters

mixed $record

Returns

boolean

hasWarning()

hasWarning(mixed  $record) : boolean

Parameters

mixed $record

Returns

boolean

hasNotice()

hasNotice(mixed  $record) : boolean

Parameters

mixed $record

Returns

boolean

hasInfo()

hasInfo(mixed  $record) : boolean

Parameters

mixed $record

Returns

boolean

hasDebug()

hasDebug(mixed  $record) : boolean

Parameters

mixed $record

Returns

boolean

hasEmergencyRecords()

hasEmergencyRecords() : boolean

Returns

boolean

hasAlertRecords()

hasAlertRecords() : boolean

Returns

boolean

hasCriticalRecords()

hasCriticalRecords() : boolean

Returns

boolean

hasErrorRecords()

hasErrorRecords() : boolean

Returns

boolean

hasWarningRecords()

hasWarningRecords() : boolean

Returns

boolean

hasNoticeRecords()

hasNoticeRecords() : boolean

Returns

boolean

hasInfoRecords()

hasInfoRecords() : boolean

Returns

boolean

hasDebugRecords()

hasDebugRecords() : boolean

Returns

boolean

hasEmergencyThatContains()

hasEmergencyThatContains(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasAlertThatContains()

hasAlertThatContains(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasCriticalThatContains()

hasCriticalThatContains(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasErrorThatContains()

hasErrorThatContains(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasWarningThatContains()

hasWarningThatContains(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasNoticeThatContains()

hasNoticeThatContains(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasInfoThatContains()

hasInfoThatContains(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasDebugThatContains()

hasDebugThatContains(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasEmergencyThatMatches()

hasEmergencyThatMatches(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasAlertThatMatches()

hasAlertThatMatches(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasCriticalThatMatches()

hasCriticalThatMatches(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasErrorThatMatches()

hasErrorThatMatches(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasWarningThatMatches()

hasWarningThatMatches(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasNoticeThatMatches()

hasNoticeThatMatches(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasInfoThatMatches()

hasInfoThatMatches(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasDebugThatMatches()

hasDebugThatMatches(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasEmergencyThatPasses()

hasEmergencyThatPasses(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasAlertThatPasses()

hasAlertThatPasses(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasCriticalThatPasses()

hasCriticalThatPasses(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasErrorThatPasses()

hasErrorThatPasses(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasWarningThatPasses()

hasWarningThatPasses(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasNoticeThatPasses()

hasNoticeThatPasses(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasInfoThatPasses()

hasInfoThatPasses(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean

hasDebugThatPasses()

hasDebugThatPasses(mixed  $message) : boolean

Parameters

mixed $message

Returns

boolean