PHP Class DebugKit\Log\Engine\DebugKitLog

Inheritance: implements Cake\Log\LogInterface
Datei anzeigen Open project: cakephp/debug_kit

Protected Properties

Property Type Description
$_logs array logs

Public Methods

Method Description
all ( ) : array Get the logs.
count ( ) : integer Get the number of log entries.
log ( string $type, string $message, array $context = [] ) : void Captures log messages in memory
noLogs ( ) : boolean Check if there are no logs.

Method Details

all() public method

Get the logs.
public all ( ) : array
return array

count() public method

Get the number of log entries.
public count ( ) : integer
return integer

log() public method

Captures log messages in memory
public log ( string $type, string $message, array $context = [] ) : void
$type string The type of message being logged.
$message string The message being logged.
$context array Additional context data
return void

noLogs() public method

Check if there are no logs.
public noLogs ( ) : boolean
return boolean

Property Details

$_logs protected_oe property

logs
protected array $_logs
return array