Ref T709, static "ownAircraftString" and improved logging

This commit is contained in:
Klaus Basan
2019-08-08 20:11:15 +02:00
committed by Mat Sutcliffe
parent 61072c70ce
commit 0605c2d139
4 changed files with 19 additions and 11 deletions

View File

@@ -41,10 +41,13 @@ namespace XSwiftBus
//! Logger convenience macros
//! @{
// *INDENT-OFF*
#define DEBUG_LOG(msg) Logger::print(__FILE__, __LINE__, Logger::DebugMsg, msg)
#define DEBUG_LOG_C(msg, doLog) if (doLog) { Logger::print(__FILE__, __LINE__, Logger::DebugMsg, msg); }
#define INFO_LOG(msg) Logger::print(__FILE__, __LINE__, Logger::InfoMsg, msg)
#define WARNING_LOG(msg) Logger::print(__FILE__, __LINE__, Logger::WarningMsg, msg)
#define ERROR_LOG(msg) Logger::print(__FILE__, __LINE__, Logger::ErrorMsg, msg)
// *INDENT-ON*
//! @}
}