public function logException($level, $message, array $context = [], $exception = null)
    {
        $this->log($level, $message, array_merge($context, ['exception'=>$exception]));
    }
public function logException($level, $message, array $context = [], $exception = null)
    {
        $this->log($level, $message, array_merge($context, ['exception'=>$exception]));
    }
public function logException ( $ level , $ message , array $ context = [ ] , $ exception = null ) { $ this -> log ( $ level , $ message , array_merge ( $ context , [ 'exception' => $ exception ] ) ) ; }
Log an Exception.

@param (string) $level Error level (string or PHP syslog priority)
@oaram (string)    $message Error message

@param (array)     $context   Contextual array
@param (Expection) $exception Exception

@since 2.0.3

@return void
Log an Exception .