public function isLevelEnabled(string $level, int $level_num = null)
    {
        if ($level_num === null)
            $level_num = Logger::getLevelNumeric($level);
        return $level_num >= $this->min_level;
    }