Properties

$name

$name : 

Type

$messages

$messages : 

Type

$aggregates

$aggregates : 

Type

$dataFormater

$dataFormater : 

Type

$slim

$slim : 

Type

$originalLogWriter

$originalLogWriter : 

Type

Methods

__construct()

__construct(\Slim\Slim  $slim) 

Parameters

\Slim\Slim $slim

setDataFormatter()

setDataFormatter(\DebugBar\DataCollector\DataFormatterInterface  $formater) 

Sets the data formater instance used by this collector

Parameters

\DebugBar\DataCollector\DataFormatterInterface $formater

getDataFormatter()

getDataFormatter() 

addMessage()

addMessage(mixed  $message, string  $label = 'info',   $isString = true) 

Adds a message

A message can be anything from an object to a string

Parameters

mixed $message
string $label
$isString

getMessages()

getMessages() : array

Returns collected messages

Returns

array

log()

log(  $level,   $message, array  $context = array()) 

Parameters

$level
$message
array $context

clear()

clear() 

Deletes all messages

collect()

collect() : array

Called by the DebugBar when data needs to be collected

Returns

array —

Collected data

getName()

getName() : string

Returns the unique name of the collector

Returns

string

getWidgets()

getWidgets() : array

Returns a hash where keys are control names and their values an array of options as defined in {@see DebugBar\JavascriptRenderer::addControl()}

Returns

array

emergency()

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

System is unusable.

Parameters

string $message
array $context

Returns

null

alert()

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

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

Returns

null

critical()

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

Critical conditions.

Example: Application component unavailable, unexpected exception.

Parameters

string $message
array $context

Returns

null

error()

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

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

Parameters

string $message
array $context

Returns

null

warning()

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

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

Returns

null

notice()

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

Normal but significant events.

Parameters

string $message
array $context

Returns

null

info()

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

Interesting events.

Example: User logs in, SQL logs.

Parameters

string $message
array $context

Returns

null

debug()

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

Detailed debug information.

Parameters

string $message
array $context

Returns

null

write()

write(  $message,   $level) 

Parameters

$message
$level

getLevelName()

getLevelName(  $level) 

Parameters

$level