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:
parent
ba6815af1b
commit
213e04d851
2 changed files with 6 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue