Commit 5e7df923 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

log: fix adjustment of log level and format for sinks

parent ce4c61db
......@@ -38,7 +38,6 @@ Log villas::logging;
Log::Log(Level lvl) :
level(lvl),
// pattern("%+")
pattern("%H:%M:%S %^%l%$ %n: %v")
{
char *p = getenv("VILLAS_LOG_PREFIX");
......@@ -151,7 +150,7 @@ void Log::setPattern(const std::string &pat)
pattern = pat;
spdlog::set_pattern(pattern, spdlog::pattern_time_type::utc);
//sinks.set_pattern(pattern);
sinks->set_pattern(pattern);
}
void Log::setLevel(Level lvl)
......@@ -159,7 +158,7 @@ void Log::setLevel(Level lvl)
level = lvl;
spdlog::set_level(lvl);
//sinks.set_level(lvl);
sinks->set_level(lvl);
}
void Log::setLevel(const std::string &lvl)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment