DebugKit\Log\Engine\DebugKitLog::log PHP Метод

log() публичный Метод

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
Результат void
    public function log($type, $message, array $context = [])
    {
        if (!isset($this->_logs[$type])) {
            $this->_logs[$type] = [];
        }
        $this->_logs[$type][] = [date('Y-m-d H:i:s'), $this->_format($message)];
    }