RSC  0.7.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Logger.h File Reference
#include <string>
#include <ostream>
#include <sstream>
#include <boost/noncopyable.hpp>
#include <boost/shared_ptr.hpp>
#include "rsc/rscexports.h"
Include dependency graph for Logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  rsc::logging::Logger
 Interface for logging adapters that can be used with RSC. More...
 

Namespaces

 rsc
 
 rsc::logging
 Provides a hierarchical logging system with the possibility to install different backends, which are instances of LoggingSystem.
 

Macros

logging utility macros with stream semantics
#define RSCTRACE(logger, msg)
 
#define RSCDEBUG(logger, msg)
 
#define RSCINFO(logger, msg)
 
#define RSCWARN(logger, msg)
 
#define RSCERROR(logger, msg)
 
#define RSCFATAL(logger, msg)
 

Typedefs

typedef boost::shared_ptr< Logger > rsc::logging::LoggerPtr
 

Functions

ostream & rsc::logging::operator<< (ostream &stream, const Logger::Level &level)
 

Macro Definition Documentation

#define RSCDEBUG (   logger,
  msg 
)
Value:
if (logger->isDebugEnabled()) { \
std::stringstream s; \
s << msg; \
logger->debug(s.str()); \
}

Definition at line 217 of file Logger.h.

Referenced by rsc::threading::RepetitiveTask::run(), rsc::subprocess::UnixSubprocess::UnixSubprocess(), rsc::threading::RepetitiveTask::waitDone(), and rsc::subprocess::UnixSubprocess::~UnixSubprocess().

#define RSCERROR (   logger,
  msg 
)
Value:
if (logger->isErrorEnabled()) { \
std::stringstream s; \
s << msg; \
logger->error(s.str()); \
}

Definition at line 238 of file Logger.h.

Referenced by rsc::subprocess::UnixSubprocess::UnixSubprocess(), and rsc::subprocess::UnixSubprocess::~UnixSubprocess().

#define RSCFATAL (   logger,
  msg 
)
Value:
if (logger->isFatalEnabled()) { \
std::stringstream s; \
s << msg; \
logger->fatal(s.str()); \
}

Definition at line 245 of file Logger.h.

#define RSCINFO (   logger,
  msg 
)
Value:
if (logger->isInfoEnabled()) { \
std::stringstream s; \
s << msg; \
logger->info(s.str()); \
}

Definition at line 224 of file Logger.h.

#define RSCTRACE (   logger,
  msg 
)
#define RSCWARN (   logger,
  msg 
)
Value:
if (logger->isWarnEnabled()) { \
std::stringstream s; \
s << msg; \
logger->warn(s.str()); \
}

Definition at line 231 of file Logger.h.

Referenced by rsc::threading::PeriodicTask::continueExec().