Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLAScommon
Commits
2cff8910
Commit
2cff8910
authored
Dec 02, 2018
by
Steffen Vogel
🎅🏼
Browse files
log: add Log::getLevelName()
parent
f4228b93
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/villas/log.hpp
View file @
2cff8910
...
...
@@ -75,6 +75,7 @@ public:
void
setLevel
(
const
std
::
string
&
lvl
);
Level
getLevel
()
const
;
std
::
string
getLevelName
()
const
;
};
}
// namespace villas
lib/log.cpp
View file @
2cff8910
...
...
@@ -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
));
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment