lokinet/llarp/util/loglevel.cpp

22 lines
363 B
C++
Raw Normal View History

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