lokinet/llarp/logger.cpp

29 lines
361 B
C++
Raw Normal View History

#include <logger.hpp>
#include <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;
}
}