89 std::ostringstream
oss;
98 #define LOG_L(__level) \
99 if (OpenAB::Logger::OutLevel() >= __level) \
100 OpenAB::Logger::getDefaultLogger()->get(__level)
105 #define LOG_VERBOSE() \
106 LOG_L(OpenAB::Logger::Verbose)
111 #define LOG_DEBUG() \
112 LOG_L(OpenAB::Logger::Debug)
117 #define LOG_ERROR() \
118 LOG_L(OpenAB::Logger::Error)
123 #define LOG_FATAL() \
124 LOG_L(OpenAB::Logger::Fatal)
129 #define LOG_WARNING() \
130 LOG_L(OpenAB::Logger::Warning)
136 LOG_L(OpenAB::Logger::Info)
148 LOG_L(OpenAB::Logger::DebugF) << __FILE__ <<": " << (long long int)(__LINE__) << ": "<< __FUNCTION__ << std::endl
static void setDefaultLogger(Logger *logger)
Sets new default logger.
Definition: Log.cpp:55
LogLevel
Definition: Log.hpp:38
virtual ~Logger()
Destructor, virtual by default.
Definition: Log.cpp:65
Logger()
Default constructor.
Definition: Log.cpp:60
static LogLevel & OutLevel()
Returns currently set LogLevel and allows to override it.
Definition: Log.cpp:90
Logger & operator<<(T data)
Definition: Log.hpp:50
Logger class, allows to override way in which messages from OpenAB will be logged.
Definition: Log.hpp:22
std::ostringstream oss
Definition: Log.hpp:89
const char * toString(LogLevel l)
Definition: Log.cpp:76
static Logger * getDefaultLogger()
Returns pointer to currently set default logger. There can be only one default logger set at the time...
Definition: Log.cpp:48
LogLevel level
Definition: Log.hpp:88