StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
Logger.hpp File Reference
#include <cassert>
#include <sstream>
#include <string>
#include <stdair/stdair_log.hpp>
#include <stdair/basic/BasLogParams.hpp>

Go to the source code of this file.

Classes

class  stdair::Logger
 

Namespaces

 stdair
 Handle on the StdAir library context.
 

Macros

#define STDAIR_LOG_CORE(iLevel, iToBeLogged)
 
#define STDAIR_LOG_CRITICAL(iToBeLogged)   STDAIR_LOG_CORE (stdair::LOG::CRITICAL, iToBeLogged)
 
#define STDAIR_LOG_ERROR(iToBeLogged)   STDAIR_LOG_CORE (stdair::LOG::ERROR, iToBeLogged)
 
#define STDAIR_LOG_NOTIFICATION(iToBeLogged)   STDAIR_LOG_CORE (stdair::LOG::NOTIFICATION, iToBeLogged)
 
#define STDAIR_LOG_WARNING(iToBeLogged)   STDAIR_LOG_CORE (stdair::LOG::WARNING, iToBeLogged)
 
#define STDAIR_LOG_DEBUG(iToBeLogged)   STDAIR_LOG_CORE (stdair::LOG::DEBUG, iToBeLogged)
 
#define STDAIR_LOG_VERBOSE(iToBeLogged)   STDAIR_LOG_CORE (stdair::LOG::VERBOSE, iToBeLogged)
 

Macro Definition Documentation

#define STDAIR_LOG_CORE (   iLevel,
  iToBeLogged 
)
Value:
{ std::ostringstream ostr; ostr << iToBeLogged; \
stdair::Logger::instance().log (iLevel, __LINE__, __FILE__, ostr.str()); }
void log(const LOG::EN_LogLevel iLevel, const int iLineNumber, const std::string &iFileName, const T &iToBeLogged)
Definition: Logger.hpp:59
static Logger & instance()
Definition: Logger.cpp:48

Definition at line 16 of file Logger.hpp.

#define STDAIR_LOG_CRITICAL (   iToBeLogged)    STDAIR_LOG_CORE (stdair::LOG::CRITICAL, iToBeLogged)

Definition at line 20 of file Logger.hpp.

#define STDAIR_LOG_NOTIFICATION (   iToBeLogged)    STDAIR_LOG_CORE (stdair::LOG::NOTIFICATION, iToBeLogged)

Definition at line 26 of file Logger.hpp.

#define STDAIR_LOG_WARNING (   iToBeLogged)    STDAIR_LOG_CORE (stdair::LOG::WARNING, iToBeLogged)

Definition at line 29 of file Logger.hpp.

#define STDAIR_LOG_VERBOSE (   iToBeLogged)    STDAIR_LOG_CORE (stdair::LOG::VERBOSE, iToBeLogged)

Definition at line 35 of file Logger.hpp.