Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: MTS-Lora/vendor/multitech/MTS-Utils/MTSLog.h
- Revision:
- 72:b1e07ec1c30d
- Parent:
- 65:acc0468b9aec
--- a/MTS-Lora/vendor/multitech/MTS-Utils/MTSLog.h Fri Nov 08 09:34:58 2019 -0600 +++ b/MTS-Lora/vendor/multitech/MTS-Utils/MTSLog.h Mon Feb 17 14:43:04 2020 -0600 @@ -38,6 +38,13 @@ mts::MTSLog::printMessage(mts::MTSLog::DEBUG_LEVEL, "%s:%s:%d| [%s] " format "\r\n", __CLASSNAME__, __func__, __LINE__, mts::MTSLog::DEBUG_LABEL, ##__VA_ARGS__) #define logTrace(format, ...) \ mts::MTSLog::printMessage(mts::MTSLog::TRACE_LEVEL, "%s:%s:%d| [%s] " format "\r\n", __CLASSNAME__, __func__, __LINE__, mts::MTSLog::TRACE_LABEL, ##__VA_ARGS__) +#elif defined(MTS_DEBUG_OFF) +#define logFatal(...) +#define logError(...) +#define logWarning(...) +#define logInfo(...) +#define logDebug(...) +#define logTrace(...) #else #define logFatal(format, ...) \ __LOG__(mts::MTSLog::FATAL_LEVEL, format, ##__VA_ARGS__)