diff --git a/AdsLib/AdsLib.cpp b/AdsLib/AdsLib.cpp index c60c7f97..8a78aaef 100644 --- a/AdsLib/AdsLib.cpp +++ b/AdsLib/AdsLib.cpp @@ -332,3 +332,8 @@ long AdsSyncSetTimeoutEx(long port, uint32_t timeout) ASSERT_PORT(port); return GetRouter().SetTimeout((uint16_t)port, timeout); } + +unsigned long SetLogLevel(size_t newLogLevel) { + Logger::logLevel = newLogLevel; + return Logger::logLevel; +} diff --git a/AdsLib/AdsLib.h b/AdsLib/AdsLib.h index fd1f1735..491aaa78 100644 --- a/AdsLib/AdsLib.h +++ b/AdsLib/AdsLib.h @@ -24,6 +24,7 @@ #define _ADSLIB_H_ #include "AdsDef.h" +#include "Log.h" extern "C" { @@ -216,6 +217,8 @@ long AdsSyncGetTimeoutEx(long port, uint32_t* timeout); */ long AdsSyncSetTimeoutEx(long port, uint32_t timeout); +unsigned long SetLogLevel(size_t newLogLevel); + } #endif /* #ifndef _ADSLIB_H_ */