Make debug stream names use "-", and handle "_" transparently

This looks consistent, and doesn't break any existing uses with underscores.
This commit is contained in:
Christian Kreibich 2024-11-15 17:53:29 -08:00
parent 7563af4906
commit b1e0e26484
3 changed files with 21 additions and 6 deletions

View file

@ -108,9 +108,9 @@ private:
static Stream streams[NUM_DBGS];
const std::string PluginStreamName(const std::string& plugin_name) {
return "plugin-" + util::strtolower(util::strreplace(plugin_name, "::", "-"));
}
// Canonical rendering of a plugin's name. This is lower-cased,
// with "::" and "_" both becoming "-".
const std::string PluginStreamName(const std::string& plugin_name) const;
};
extern DebugLogger debug_logger;