Class

Symfony\Component\HttpKernel\DataCollector\LoggerDataCollector

class LoggerDataCollector extends DataCollector implements LateDataCollectorInterface

LogDataCollector.

Methods

serialize()

from DataCollector
unserialize($data)

from DataCollector
__construct($logger = null)

collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

lateCollect()

Collects data as late as possible.

array countErrors()

Gets the called events.

array getLogs()

Gets the logs.

getPriorities()

countDeprecations()

countScreams()

string getName()

Returns the name of the collector.

Details

in DataCollector at line 33
public serialize()

in DataCollector at line 38
public unserialize($data)

Parameters

$data

at line 28
public __construct($logger = null)

Parameters

$logger

at line 38
public collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

Parameters

Request $request A Request instance
Response $response A Response instance
Exception $exception An Exception instance

at line 46
public lateCollect()

Collects data as late as possible.

at line 61
public array countErrors()

Gets the called events.

Return Value

array An array of called events

See also

TraceableEventDispatcherInterface

at line 71
public array getLogs()

Gets the logs.

Return Value

array An array of logs

at line 76
public getPriorities()

at line 81
public countDeprecations()

at line 86
public countScreams()

at line 94
public string getName()

Returns the name of the collector.

Return Value

string The collector name