mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
d511057b7d
* nicknames in RC (yw kee) * spec update * more hidden service code
28 lines
366 B
C++
28 lines
366 B
C++
#include "logger.hpp"
|
|
#include <llarp/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;
|
|
}
|
|
} |