mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-03 23:15:52 +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;
|
|
}
|
|
}
|