mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
372 B
C++
23 lines
372 B
C++
5 years ago
|
#include <util/logging/loglevel.hpp>
|
||
5 years ago
|
|
||
|
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 "???";
|
||
|
}
|
||
|
}
|
||
5 years ago
|
} // namespace llarp
|