OpenAB  1.0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Log.hpp File Reference
#include <sstream>
#include <iomanip>
#include <iostream>
Include dependency graph for Log.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OpenAB::Logger
 Logger class, allows to override way in which messages from OpenAB will be logged. More...
 

Namespaces

 OpenAB
 namespace OpenAB
 

Macros

#define LOG_L(__level)
 
#define LOG_VERBOSE()   LOG_L(OpenAB::Logger::Verbose)
 
#define LOG_DEBUG()   LOG_L(OpenAB::Logger::Debug)
 
#define LOG_ERROR()   LOG_L(OpenAB::Logger::Error)
 
#define LOG_FATAL()   LOG_L(OpenAB::Logger::Fatal)
 
#define LOG_WARNING()   LOG_L(OpenAB::Logger::Warning)
 
#define LOG_INFO()   LOG_L(OpenAB::Logger::Info)
 
#define LOG()   LOG_INFO()
 
#define LOG_FUNC()   LOG_L(OpenAB::Logger::DebugF) << __FILE__ <<": " << (long long int)(__LINE__) << ": "<< __FUNCTION__ << std::endl
 

Macro Definition Documentation

#define LOG ( )    LOG_INFO()
Returns
An Logger for a Log (by default Info Level)
#define LOG_DEBUG ( )    LOG_L(OpenAB::Logger::Debug)
Returns
An Logger for a Debug Log
#define LOG_ERROR ( )    LOG_L(OpenAB::Logger::Error)
Returns
An Logger for a Error Log
#define LOG_FATAL ( )    LOG_L(OpenAB::Logger::Fatal)
Returns
An Logger for a Fatal Error Log
#define LOG_FUNC ( )    LOG_L(OpenAB::Logger::DebugF) << __FILE__ <<": " << (long long int)(__LINE__) << ": "<< __FUNCTION__ << std::endl
Returns
An Logger with the line number and the function prefix
#define LOG_INFO ( )    LOG_L(OpenAB::Logger::Info)
Returns
An Logger for a Info Log
#define LOG_L (   __level)
Value:
if (OpenAB::Logger::OutLevel() >= __level) \
static LogLevel & OutLevel()
Returns currently set LogLevel and allows to override it.
Definition: Log.cpp:90
Logger & get(LogLevel l)
Definition: Log.cpp:70
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
Parameters
[in]__levellogging level
Returns
An Logger object
#define LOG_VERBOSE ( )    LOG_L(OpenAB::Logger::Verbose)
Returns
An Logger for a Verbose Log
#define LOG_WARNING ( )    LOG_L(OpenAB::Logger::Warning)
Returns
An Logger for a Warning Log