Utility: Logging

Added logging utility classes supposed to be used for all your logging
needs, e.g. instead of cout

reviewer=ebsi
This commit is contained in:
Manuel Dobusch
2014-04-07 14:44:54 +02:00
parent a1de92c58d
commit c85d997021
9 changed files with 455 additions and 2 deletions
+33
View File
@@ -0,0 +1,33 @@
#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 \
{ \
std::string s((str)); \
LogManager::getInstance()->logInfo(s, __FILE__, __FUNCTION__, __LINE__); \
} \
while(0) \
#define LOG_WARNING(str) \
do \
{ \
std::string s((str)); \
LogManager::getInstance()->logWarning(s, __FILE__, __FUNCTION__, __LINE__); \
} \
while(0) \
#define LOG_ERROR(str) \
do \
{ \
std::string s((str)); \
LogManager::getInstance()->logError(s, __FILE__, __FUNCTION__, __LINE__); \
} \
while(0) \
#endif // LOGGING_H