Kraken\Log\Logger::error PHP Method

error() public method

This method allows for compatibility with common interfaces.
public error ( string $message, array $context = [] ) : boolean
$message string
$context array
return boolean
    public function error($message, array $context = array())
    {
        try {
            return $this->logger->error($message, $context);
        } catch (Error $ex) {
        } catch (Exception $ex) {
        }
        throw new WriteException("Record with debug level could not be logged.", $ex);
    }