Logger

PSR-3 Logger.

package

Default

Methods

Action must be taken immediately.

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

Arguments

$message

string

$context

array

Response

null

Critical conditions.

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

Arguments

$message

string

$context

array

Response

null

Detailed debug information.

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

Arguments

$message

string

$context

array

Response

null

System is unusable.

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

Arguments

$message

string

$context

array

Response

null

Runtime errors.

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

Arguments

$message

string

$context

array

Response

null

Gets timer header in 'Y/m/d H:i:s.u' format.

getTimeHeader(mixed $timestamp = null) : string

Arguments

$timestamp

mixed

Timestamp

Response

string

formatted time

Interesting events.

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

Arguments

$message

string

$context

array

Response

null

Interpolates context values into the message placeholders.

interpolate(string $message, array $context = array()) : string

Arguments

$message

string

$context

array

Response

string

Interpolated message

Logs with an arbitrary level.

log(mixed $level, string $message, array $context = array()) : null

Arguments

$level

mixed

$message

string

$context

array

Response

null

Normal but significant events.

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

Arguments

$message

string

$context

array

Response

null

Exceptional occurrences that are not errors.

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

Arguments

$message

string

$context

array

Response

null

Properties

Logger verbose mode

verbose : boolean
var

Type(s)

boolean