console_bridge
Namespaces | Macros | Enumerations | Functions
console.h File Reference
#include <base-logging/Logging.hpp>

Go to the source code of this file.

Namespaces

 console_bridge
 Message namespace. This contains classes needed to output error messages (or logging) from within the library. Message logging can be performed with logging macros.
 

Macros

#define CONSOLE_BRIDGE_DEPRECATED
 
#define CONSOLE_BRIDGE_logError(fmt, ...)
 
#define CONSOLE_BRIDGE_logWarn(fmt, ...)
 
#define CONSOLE_BRIDGE_logInform(fmt, ...)
 
#define CONSOLE_BRIDGE_logDebug(fmt, ...)
 
#define logDebug(FORMAT, ARGS...)
 Log a formatted debugging string. More...
 
#define logInfo(FORMAT, ARGS...)
 
#define logWarn(FORMAT, ARGS...)
 Log a formatted warning string. More...
 
#define logError(FORMAT, ARGS...)
 Log a formatted error string. More...
 
#define logFatal(FORMAT, ARGS...)
 
#define logInform(FORMAT, ARGS...)
 Log a formatted information string. More...
 

Enumerations

enum  console_bridge::LogLevel {
  console_bridge::CONSOLE_BRIDGE_LOG_DEBUG = 0, console_bridge::CONSOLE_BRIDGE_LOG_INFO, console_bridge::CONSOLE_BRIDGE_LOG_WARN, console_bridge::CONSOLE_BRIDGE_LOG_ERROR,
  console_bridge::CONSOLE_BRIDGE_LOG_NONE
}
 The set of priorities for message logging. More...
 

Functions

void console_bridge::setLogLevel (LogLevel level)
 Set the minimum level of logging data to output. Messages with lower logging levels will not be recorded. More...
 
LogLevel console_bridge::getLogLevel (void)
 Retrieve the current level of logging data. Messages with lower logging levels will not be recorded. More...
 

Macro Definition Documentation

◆ CONSOLE_BRIDGE_DEPRECATED

#define CONSOLE_BRIDGE_DEPRECATED

◆ CONSOLE_BRIDGE_logDebug

#define CONSOLE_BRIDGE_logDebug (   fmt,
  ... 
)
Value:
do { \
LOG_DEBUG(fmt, ##__VA_ARGS__); } while(0)

◆ CONSOLE_BRIDGE_logError

#define CONSOLE_BRIDGE_logError (   fmt,
  ... 
)
Value:
do { \
LOG_ERROR(fmt, ##__VA_ARGS__); } while(0)

◆ CONSOLE_BRIDGE_logInform

#define CONSOLE_BRIDGE_logInform (   fmt,
  ... 
)
Value:
do { \
LOG_INFO(fmt, ##__VA_ARGS__); } while(0)

◆ CONSOLE_BRIDGE_logWarn

#define CONSOLE_BRIDGE_logWarn (   fmt,
  ... 
)
Value:
do { \
LOG_WARN(fmt, ##__VA_ARGS__); } while(0)

◆ logFatal

#define logFatal (   FORMAT,
  ARGS... 
)
Value:
do { \
console_bridge_deprecated(); \
LOG_FATAL(FORMAT, ## ARGS); } while(0)

◆ logInfo

#define logInfo (   FORMAT,
  ARGS... 
)
Value:
do { \
console_bridge_deprecated(); \
LOG_INFO(FORMAT, ## ARGS); } while(0)