Kraken\Log\Logger::log PHP Method

log() public method

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