lokinet/llarp/logger.cpp

28 lines
366 B
C++
Raw Normal View History

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