diff --git a/common/include/villas/log.hpp b/common/include/villas/log.hpp index bdf172668..9c4f32ec9 100644 --- a/common/include/villas/log.hpp +++ b/common/include/villas/log.hpp @@ -70,6 +70,8 @@ public: void setLevel(Level lvl); void setLevel(const std::string &lvl); + + Level getLevel() const; }; } // namespace villas diff --git a/common/lib/log.cpp b/common/lib/log.cpp index eaa651d82..8f3e2afc2 100644 --- a/common/lib/log.cpp +++ b/common/lib/log.cpp @@ -152,4 +152,7 @@ void Log::setLevel(const std::string &lvl) setLevel(level); } - +Log::Level Log::getLevel() const +{ + return level; +}