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 27
public __construct($logger = null)

Parameters

$logger

at line 37
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 45
public lateCollect()

Collects data as late as possible.

at line 60
public array countErrors()

Gets the called events.

Return Value

array An array of called events

See also

TraceableEventDispatcherInterface

at line 70
public array getLogs()

Gets the logs.

Return Value

array An array of logs

at line 75
public getPriorities()

at line 80
public countDeprecations()

at line 85
public countScreams()

at line 93
public string getName()

Returns the name of the collector.

Return Value

string The collector name