public function setMinLevel(string $level): void
    {
        if ($this->levelIsValid($level) === false) {
            throw new \InvalidArgumentException('Invalid log-level provided.');
        }
        $this->minLevel = $this->getLevelCode($level);
    }