public function removeLogger(string $key, $trigger = true) {
        if ($trigger && !$this->has($key)) {
            trigger_error("Logger $key was removed without being added.");
        }

        unset($this->loggers[$key]);

        return $this;
    }