Documentation

DebugBarLogs
in package
implements DataCollectorInterface, MessagesAggregateInterface, Renderable

Provides a way to log messages.

Interfaces, Classes, Traits and Enums

DataCollectorInterface
MessagesAggregateInterface
Renderable

Table of Contents

$aggregates  : mixed
$dataFormater  : mixed
$messages  : mixed
$name  : mixed
__construct()  : mixed
addMessage()  : mixed
Adds a message.
aggregate()  : mixed
Aggregates messages from other collectors.
clear()  : mixed
Deletes all messages.
collect()  : array<string|int, mixed>
getDataFormatter()  : DataFormatterInterface
getMessages()  : array<string|int, mixed>
getName()  : string
getWidgets()  : array<string|int, mixed>
setDataFormatter()  : $this
Sets the data formater instance used by this collector.

Properties

Methods

__construct()

public __construct([string $name = 'logs' ]) : mixed
Parameters
$name : string = 'logs'
Return values
mixed

addMessage()

Adds a message.

public addMessage(mixed $message[, string $label = 'info' ][, mixed $traces = [] ]) : mixed

A message can be anything from an object to a string

Parameters
$message : mixed
$label : string = 'info'
$traces : mixed = []
Return values
mixed

aggregate()

Aggregates messages from other collectors.

public aggregate(MessagesAggregateInterface $messagesAggregate) : mixed
Parameters
$messagesAggregate : MessagesAggregateInterface
Return values
mixed

clear()

Deletes all messages.

public clear() : mixed
Return values
mixed

collect()

public collect() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDataFormatter()

public getDataFormatter() : DataFormatterInterface
Return values
DataFormatterInterface

getMessages()

public getMessages() : array<string|int, mixed>
Return values
array<string|int, mixed>

getName()

public getName() : string
Return values
string

getWidgets()

public getWidgets() : array<string|int, mixed>
Return values
array<string|int, mixed>

setDataFormatter()

Sets the data formater instance used by this collector.

public setDataFormatter(DataFormatterInterface $formater) : $this
Parameters
$formater : DataFormatterInterface
Return values
$this

        

Search results