Commit 50f92951 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

improve naming of plugin loggers

parent 1c1f4f7a
......@@ -131,6 +131,10 @@ public:
virtual std::string
getName() const = 0;
/// Get plugin type
virtual std::string
getType() const = 0;
// Get plugin description
virtual std::string
getDescription() const = 0;
......@@ -138,10 +142,12 @@ public:
protected:
std::string path;
virtual
Logger
getLogger()
{
return logging.get("plugin:" + getName());
auto name = fmt::format("{}:{}", getType(), getName());
return logging.get(name);
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment