mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
29 lines
361 B
C++
29 lines
361 B
C++
#include <logger.hpp>
|
|
#include <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;
|
|
}
|
|
}
|