public static function resetGlobalState()
    {
        foreach (self::$module_loggers as $logger)
            $logger->removeLogWriters();
        self::$module_loggers = [];
        self::$accept_mode = self::MODE_ACCEPT_MOST_SPECIFIC;
    }