From ef2dc97c0dfe1a444a65b42ecdb45462fd3076f1 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 1 Nov 2018 14:30:32 +0100 Subject: [PATCH] log: add getter for log level --- common/include/villas/log.hpp | 2 ++ common/lib/log.cpp | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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; +}