LoggerDefines.h File Reference

#include <activemq/logger/SimpleLogger.h>
#include <sstream>

Defines

#define LOGCMS_DECLARE(loggerName)   static activemq::logger::SimpleLogger loggerName;
#define LOGCMS_INITIALIZE(loggerName, className, loggerFamily)   activemq::logger::SimpleLogger className::loggerName(loggerFamily);
#define LOGCMS_DECLARE_LOCAL(loggerName)   activemq::logger::Logger loggerName;
#define LOGCMS_DEBUG(logger, message)   logger.debug(__FILE__, __LINE__, message);
#define LOGCMS_DEBUG_1(logger, message, value)
#define LOGCMS_INFO(logger, message)   logger.info(__FILE__, __LINE__, message);
#define LOGCMS_ERROR(logger, message)   logger.error(__FILE__, __LINE__, message);
#define LOGCMS_WARN(logger, message)   logger.warn(__FILE__, __LINE__, message);
#define LOGCMS_FATAL(logger, message)   logger.fatal(__FILE__, __LINE__, message);

Define Documentation

#define LOGCMS_DEBUG logger,
message   )     logger.debug(__FILE__, __LINE__, message);
 

#define LOGCMS_DEBUG_1 logger,
message,
value   ) 
 

Value:

;                     \
   {                                                                \
      std::ostringstream ostream;                                   \
      ostream << message << value;                                  \
      logger.debug(__FILE__, __LINE__, ostream.str());              \
   }

#define LOGCMS_DECLARE loggerName   )     static activemq::logger::SimpleLogger loggerName;
 

#define LOGCMS_DECLARE_LOCAL loggerName   )     activemq::logger::Logger loggerName;
 

#define LOGCMS_ERROR logger,
message   )     logger.error(__FILE__, __LINE__, message);
 

#define LOGCMS_FATAL logger,
message   )     logger.fatal(__FILE__, __LINE__, message);
 

#define LOGCMS_INFO logger,
message   )     logger.info(__FILE__, __LINE__, message);
 

#define LOGCMS_INITIALIZE loggerName,
className,
loggerFamily   )     activemq::logger::SimpleLogger className::loggerName(loggerFamily);
 

#define LOGCMS_WARN logger,
message   )     logger.warn(__FILE__, __LINE__, message);
 


Generated on Thu Aug 3 18:03:31 2006 for activemq-cpp by  doxygen 1.4.5