Files
Sourcetrail/src/lib/utility/logging/logging.h
T
Eberhard Graether e38914887d utility: Fixed name collision of log macros in clang
This change removes the local std::string variable in the log macros due to possible name collisions with macro callers
in clang. Responsibility of this change is held by Malte.
2014-07-07 13:43:29 +02:00

31 lines
562 B
C

#ifndef LOGGING_H
#define LOGGING_H
#include "utility/logging/LogManager.h"
/**
* @brief Makros to simplify usage of the log manager
*/
#define LOG_INFO(str) \
do \
{ \
LogManager::getInstance()->logInfo(str, __FILE__, __FUNCTION__, __LINE__); \
} \
while(0) \
#define LOG_WARNING(str) \
do \
{ \
LogManager::getInstance()->logWarning(str, __FILE__, __FUNCTION__, __LINE__); \
} \
while(0) \
#define LOG_ERROR(str) \
do \
{ \
LogManager::getInstance()->logError(str, __FILE__, __FUNCTION__, __LINE__); \
} \
while(0) \
#endif // LOGGING_H