mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-31 09:20:21 +00:00
22 lines
363 B
C++
22 lines
363 B
C++
#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
|