ArrayLogger
class ArrayLogger implements LoggerInterface
Saves requests information in array so they can be retrieved later.
Methods
__construct()
Empty constructor for forward compatibility.
getTimer()
Returns a timer to be used to gather timing information for the next request.
void
log(float $api, RequestInterface $request, StandardTimer $timer, ResponseInterface $response = null, Exception $exception = null)
Log information about a request.
Details
at line 25
__construct()
Empty constructor for forward compatibility.
at line 34
TimerInterface
getTimer()
Returns a timer to be used to gather timing information for the next request.
at line 44
LogEntry[]
getLogs()
Returns the collected logs.
at line 62
void
log(float $api, RequestInterface $request, StandardTimer $timer, ResponseInterface $response = null, Exception $exception = null)
Log information about a request.