src/Console.php
public function logError(Exception $exception, $message = '')
    {
        if (empty($message)) {
            $message = $exception->getMessage();
        }

        array_push($this->store, array(
            'data' => $message,
            'file' => $exception->getFile(),
            'line' => $exception->getLine(),
            'type' => 'error'
        ));
    }
public function logError(Exception $exception, $message = '')
    {
        if (empty($message)) {
            $message = $exception->getMessage();
        }

        array_push($this->store, array(
            'data' => $message,
            'file' => $exception->getFile(),
            'line' => $exception->getLine(),
            'type' => 'error'
        ));
    }
public function logError ( Exception $ exception , $ message = '' ) { if ( empty ( $ message ) ) { $ message = $ exception -> getMessage ( ) ; } array_push ( $ this -> store , array ( 'data' => $ message , 'file' => $ exception -> getFile ( ) , 'line' => $ exception -> getLine ( ) , 'type' => 'error' ) ) ; }
Logs exception with optional message override

@param Exception $exception
@param string    $message
Logs exception with optional message override