Symfony2 API
Class

Symfony\Component\HttpKernel\DataCollector\LoggerDataCollector

class LoggerDataCollector extends DataCollector

LogDataCollector.

Methods

__construct($logger = null)

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

Collects data for the given Request and Response.

array countErrors()

Gets the called events.

array getLogs()

Gets the logs.

countDeprecations()

string getName()

Returns the name of the collector.

Details

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 56
public array countErrors()

Gets the called events.

Return Value

array An array of called events

See also

TraceableEventDispatcherInterface

at line 66
public array getLogs()

Gets the logs.

Return Value

array An array of logs

at line 71
public countDeprecations()

at line 79
public string getName()

Returns the name of the collector.

Return Value

string The collector name