kahlan\Summary::log PHP Method

log() public method

Ingest a log.
public log ( array $log ) : self
$log array The log report.
return self
    public function log($log)
    {
        $type = $log->type();
        if (!isset($this->_logs[$type])) {
            $this->_logs[$type] = [];
        }
        $this->_logs[$type][] = $log;
        return $this;
    }