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

improve naming of plugin loggers

parent 1c1f4f7a
...@@ -131,6 +131,10 @@ public: ...@@ -131,6 +131,10 @@ public:
virtual std::string virtual std::string
getName() const = 0; getName() const = 0;
/// Get plugin type
virtual std::string
getType() const = 0;
// Get plugin description // Get plugin description
virtual std::string virtual std::string
getDescription() const = 0; getDescription() const = 0;
...@@ -138,10 +142,12 @@ public: ...@@ -138,10 +142,12 @@ public:
protected: protected:
std::string path; std::string path;
virtual
Logger Logger
getLogger() 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