src/Block.php
public function log($type = null, $data = [])
    {
        if (!func_num_args()) {
            return $this->_log;
        }
        $this->report($type, $this->log()->add($type, $data));
    }
public function log($type = null, $data = [])
    {
        if (!func_num_args()) {
            return $this->_log;
        }
        $this->report($type, $this->log()->add($type, $data));
    }
public function log ( $ type = null , $ data = [ ] ) { if ( ! func_num_args ( ) ) { return $ this -> _log ; } $ this -> report ( $ type , $ this -> log ( ) -> add ( $ type , $ data ) ) ; }
Dispatch a report.

@param object $log The report object to log.
Dispatch a report .