2019-01-10 19:41:51 +00:00
|
|
|
#include <util/logger.hpp>
|
|
|
|
#include <util/logger.h>
|
2018-05-27 13:42:55 +00:00
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
2018-05-28 13:49:44 +00:00
|
|
|
Logger _glog;
|
|
|
|
|
|
|
|
void
|
|
|
|
SetLogLevel(LogLevel lvl)
|
|
|
|
{
|
|
|
|
_glog.minlevel = lvl;
|
|
|
|
}
|
2018-07-09 03:34:29 +00:00
|
|
|
} // namespace llarp
|
2018-06-23 14:52:38 +00:00
|
|
|
|
2018-08-02 00:48:43 +00:00
|
|
|
extern "C"
|
2018-06-23 14:52:38 +00:00
|
|
|
{
|
2018-08-02 00:48:43 +00:00
|
|
|
void
|
|
|
|
cSetLogLevel(LogLevel lvl)
|
|
|
|
{
|
|
|
|
llarp::SetLogLevel((llarp::LogLevel)lvl);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
cSetLogNodeName(const char* name)
|
|
|
|
{
|
|
|
|
llarp::_glog.nodeName = name;
|
|
|
|
}
|
2018-12-12 02:52:51 +00:00
|
|
|
}
|