1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/llarp/logger.cpp
Jeff Becker d511057b7d * logging updates
* nicknames in RC (yw kee)

* spec update

* more hidden service code
2018-08-02 10:48:43 +10:00

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;
}
}