1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

log: add Log::getLevelName()

This commit is contained in:
Steffen Vogel 2018-12-02 02:50:55 +01:00
parent ba6815af1b
commit 213e04d851
2 changed files with 6 additions and 0 deletions

View file

@ -75,6 +75,7 @@ public:
void setLevel(const std::string &lvl);
Level getLevel() const;
std::string getLevelName() const;
};
} // namespace villas

View file

@ -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));
}