lokinet/llarp/util/logger.cpp

29 lines
371 B
C++
Raw Normal View History

#include <util/logger.hpp>
#include <util/logger.h>
namespace llarp
{
Logger _glog;
void
SetLogLevel(LogLevel lvl)
{
_glog.minlevel = lvl;
}
2018-07-09 03:34:29 +00:00
} // namespace llarp
extern "C"
{
void
cSetLogLevel(LogLevel lvl)
{
llarp::SetLogLevel((llarp::LogLevel)lvl);
}
void
cSetLogNodeName(const char* name)
{
llarp::_glog.nodeName = name;
}
}