lokinet/llarp/util/logging/loglevel.cpp

25 lines
416 B
C++
Raw Normal View History

2019-09-01 12:10:49 +00:00
#include <util/logging/loglevel.hpp>
2019-06-13 13:26:34 +00:00
namespace llarp
{
std::string
LogLevelToString(LogLevel lvl)
{
switch(lvl)
{
case eLogTrace:
return "TRC";
2019-06-13 13:26:34 +00:00
case eLogDebug:
return "DBG";
case eLogInfo:
return "NFO";
case eLogWarn:
return "WRN";
case eLogError:
return "ERR";
default:
return "???";
}
}
2019-09-01 12:10:49 +00:00
} // namespace llarp