StdAir Logo  1.00.0
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

namespace  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()); }

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.