PHP Class Profiler\Logger\Logger

Inheritance: extends Psr\Log\AbstractLogger, implements Profiler\Logger\ProfilerLoggerInterface
Mostra file Open project: loic-sharma/profiler

Protected Properties

Property Type Description
$logs array The array of logs.
$queries array The array of queries.

Public Methods

Method Description
debug ( $value, array $context = [] ) : null Detailed debug information.
getLogs ( string $level = null ) : array Retrieve the logs for the matching level.
getQueries ( ) : array Retrieve the queries.
log ( mixed $level, string $message, array $context = [] ) : null Logs with an arbitrary level.
query ( string $query, integer $time ) : null Log a query statement.

Method Details

debug() public method

Detailed debug information.
public debug ( $value, array $context = [] ) : null
$context array
return null

getLogs() public method

Retrieve the logs for the matching level.
public getLogs ( string $level = null ) : array
$level string
return array

getQueries() public method

Retrieve the queries.
public getQueries ( ) : array
return array

log() public method

Logs with an arbitrary level.
public log ( mixed $level, string $message, array $context = [] ) : null
$level mixed
$message string
$context array
return null

query() public method

Log a query statement.
public query ( string $query, integer $time ) : null
$query string
$time integer
return null

Property Details

$logs protected_oe property

The array of logs.
protected array $logs
return array

$queries protected_oe property

The array of queries.
protected array $queries
return array