public function addRecord($level, $message, array $context = [])
    {
        if ($this->isTriggered($level)) {
            throw $this->getContextException($context) ?: new RuntimeException($message, $level);
        }

        return parent::addRecord($level, $message, $context);
    }