Commit cfe914c7 authored by louiz’'s avatar louiz’

Fix the logger macros to avoid double ;; at the end of line

parent 22e941f3
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
# define log_debug(text) # define log_debug(text)
#else #else
# define log_debug(text)\ # define log_debug(text)\
Logger::inst()->stream(debug_lvl) << "[DEBUG]:" << WHERE << ":\t\t" << text << std::endl; Logger::inst()->stream(debug_lvl) << "[DEBUG]:" << WHERE << ":\t\t" << text << std::endl
#endif #endif
/** /**
...@@ -39,19 +39,19 @@ ...@@ -39,19 +39,19 @@
* Log an info message * Log an info message
*/ */
#define log_info(text)\ #define log_info(text)\
Logger::inst()->stream(info_lvl) << "[INFO]:" << WHERE << ":\t\t" << text << std::endl; Logger::inst()->stream(info_lvl) << "[INFO]:" << WHERE << ":\t\t" << text << std::endl
/** /**
* @def log_warning * @def log_warning
* Log a warning message * Log a warning message
*/ */
#define log_warning(text)\ #define log_warning(text)\
Logger::inst()->stream(warning_lvl) << "[WARNING]:" << WHERE << ":\t\t" << text << std::endl; Logger::inst()->stream(warning_lvl) << "[WARNING]:" << WHERE << ":\t\t" << text << std::endl
/** /**
* @def log_error * @def log_error
* Log an error message * Log an error message
*/ */
#define log_error(text)\ #define log_error(text)\
Logger::inst()->stream(error_lvl) << "[ERROR]:" << WHERE << ":\t\t" << text << std::endl; Logger::inst()->stream(error_lvl) << "[ERROR]:" << WHERE << ":\t\t" << text << std::endl
/** /**
* Juste a structure representing a stream doing nothing with its input. * Juste a structure representing a stream doing nothing with its input.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment