mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
29 lines
371 B
C++
29 lines
371 B
C++
#include <util/logger.hpp>
|
|
#include <util/logger.h>
|
|
|
|
namespace llarp
|
|
{
|
|
Logger _glog;
|
|
|
|
void
|
|
SetLogLevel(LogLevel lvl)
|
|
{
|
|
_glog.minlevel = lvl;
|
|
}
|
|
} // namespace llarp
|
|
|
|
extern "C"
|
|
{
|
|
void
|
|
cSetLogLevel(LogLevel lvl)
|
|
{
|
|
llarp::SetLogLevel((llarp::LogLevel)lvl);
|
|
}
|
|
|
|
void
|
|
cSetLogNodeName(const char* name)
|
|
{
|
|
llarp::_glog.nodeName = name;
|
|
}
|
|
}
|