Commit 2cff8910 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

log: add Log::getLevelName()

parent f4228b93
......@@ -75,6 +75,7 @@ public:
void setLevel(const std::string &lvl);
Level getLevel() const;
std::string getLevelName() const;
};
} // namespace villas
......@@ -161,3 +161,8 @@ Log::Level Log::getLevel() const
{
return level;
}
std::string Log::getLevelName() const
{
return std::string(spdlog::level::to_c_str(level));
}
Supports Markdown
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