1 #ifndef ROCK_CONSOLE_BRIDGE_CONSOLE_H 2 #define ROCK_CONSOLE_BRIDGE_CONSOLE_H 4 #include <base-logging/Logging.hpp> 8 #define CONSOLE_BRIDGE_DEPRECATED __attribute__ ((deprecated)) 9 #elif defined(_MSC_VER) 10 #define CONSOLE_BRIDGE_DEPRECATED __declspec(deprecated) 12 #pragma message("WARNING: You need to implement DEPRECATED for this compiler") 13 #define CONSOLE_BRIDGE_DEPRECATED 40 #define CONSOLE_BRIDGE_logError(fmt, ...) do { \ 41 LOG_ERROR(fmt, ##__VA_ARGS__); } while(0) 43 #define CONSOLE_BRIDGE_logWarn(fmt, ...) do { \ 44 LOG_WARN(fmt, ##__VA_ARGS__); } while(0) 46 #define CONSOLE_BRIDGE_logInform(fmt, ...) do { \ 47 LOG_INFO(fmt, ##__VA_ARGS__); } while(0) 49 #define CONSOLE_BRIDGE_logDebug(fmt, ...) do { \ 50 LOG_DEBUG(fmt, ##__VA_ARGS__); } while(0) 53 #define logDebug(FORMAT, ARGS...) do { \ 54 console_bridge_deprecated(); \ 55 LOG_DEBUG(FORMAT, ## ARGS); } while(0) 57 #define logInfo(FORMAT, ARGS...) do { \ 58 console_bridge_deprecated(); \ 59 LOG_INFO(FORMAT, ## ARGS); } while(0) 61 #define logWarn(FORMAT, ARGS...) do { \ 62 console_bridge_deprecated(); \ 63 LOG_WARN(FORMAT, ## ARGS); } while(0) 65 #define logError(FORMAT, ARGS...) do { \ 66 console_bridge_deprecated(); \ 67 LOG_ERROR(FORMAT, ## ARGS); } while(0) 69 #define logFatal(FORMAT, ARGS...) do { \ 70 console_bridge_deprecated(); \ 71 LOG_FATAL(FORMAT, ## ARGS); } while(0) 73 #define logInform(FORMAT, ARGS...) do { \ 74 console_bridge_deprecated(); \ 75 LOG_INFO(FORMAT, ## ARGS); } while(0)
#define CONSOLE_BRIDGE_logWarn(fmt,...)
Definition: console.h:43
LogLevel getLogLevel(void)
Retrieve the current level of logging data. Messages with lower logging levels will not be recorded...
Definition: console.h:103
#define CONSOLE_BRIDGE_DEPRECATED
Definition: console.h:13
void setLogLevel(LogLevel level)
Set the minimum level of logging data to output. Messages with lower logging levels will not be recor...
Definition: console.h:96
LogLevel
The set of priorities for message logging.
Definition: console.h:84
Message namespace. This contains classes needed to output error messages (or logging) from within the...
Definition: console.h:81