OWBI1_Logger.hpp File Reference

#include "OWBI1_config.h"
#include "OWBI1_CommonFwd.hpp"
#include "OWBI1_String.hpp"
#include "OWBI1_LogLevel.hpp"
#include "OWBI1_IntrusiveCountableBase.hpp"
#include "OWBI1_Exception.hpp"

Include dependency graph for OWBI1_Logger.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  OWBI1

Classes

class  OWBI1::LoggerException
class  OWBI1::Logger
 Logging interface. More...

Defines

#define OWBI1_LOGGER_PRETTY_FUNCTION   ""
#define OWBI1_LOG_DEBUG(logger, message)
 Log message to logger with the Debug level.
#define OWBI1_LOG_INFO(logger, message)
 Log message to logger with the Info level.
#define OWBI1_LOG_ERROR(logger, message)
 Log message to logger with the Error level.
#define OWBI1_LOG_FATAL_ERROR(logger, message)
 Log message to logger with the FatalError level.
#define OWBI1_LOG(logger, category, message)
 Log message to logger with the specified category.


Define Documentation

#define OWBI1_LOG logger,
category,
message   ) 
 

Value:

do \
{ \
   if ((logger)->categoryIsEnabled((category))) \
   { \
      (logger)->logMessage((category), (message), __FILE__, __LINE__, OWBI1_LOGGER_PRETTY_FUNCTION); \
   } \
} while (0)
Log message to logger with the specified category.

message is only evaluated if logger->categoryIsEnabled(category) == true __FILE__ and __LINE__ are logged.

Parameters:
logger The logger to use.
category The message category
message An expression that evaluates to a String which will be logged.

Definition at line 363 of file OWBI1_Logger.hpp.

#define OWBI1_LOG_DEBUG logger,
message   ) 
 

Value:

do \
{ \
   if ((logger)->getLogLevel() >= ::OWBI1::E_DEBUG_LEVEL) \
   { \
      (logger)->logMessage(::OWBI1::Logger::STR_DEBUG_CATEGORY, (message), __FILE__, __LINE__, OWBI1_LOGGER_PRETTY_FUNCTION); \
   } \
} while (0)
Log message to logger with the Debug level.

message is only evaluated if logger->getLogLevel() >= E_DEBUG_LEVEL __FILE__ and __LINE__ are logged.

Parameters:
logger The logger to use.
message An expression that evaluates to a String which will be logged.

Definition at line 302 of file OWBI1_Logger.hpp.

#define OWBI1_LOG_ERROR logger,
message   ) 
 

Value:

do \
{ \
   if ((logger)->getLogLevel() >= ::OWBI1::E_ERROR_LEVEL) \
   { \
      (logger)->logMessage(::OWBI1::Logger::STR_ERROR_CATEGORY, (message), __FILE__, __LINE__, OWBI1_LOGGER_PRETTY_FUNCTION); \
   } \
} while (0)
Log message to logger with the Error level.

message is only evaluated if logger->getLogLevel() >= E_ERROR_LEVEL __FILE__ and __LINE__ are logged.

Parameters:
logger The logger to use.
message An expression that evaluates to a String which will be logged.

Definition at line 332 of file OWBI1_Logger.hpp.

#define OWBI1_LOG_FATAL_ERROR logger,
message   ) 
 

Value:

do \
{ \
   if ((logger)->getLogLevel() >= ::OWBI1::E_FATAL_ERROR_LEVEL) \
   { \
      (logger)->logMessage(::OWBI1::Logger::STR_FATAL_CATEGORY, (message), __FILE__, __LINE__, OWBI1_LOGGER_PRETTY_FUNCTION); \
   } \
} while (0)
Log message to logger with the FatalError level.

message is always evaluated. __FILE__ and __LINE__ are logged.

Parameters:
logger The logger to use.
message An expression that evaluates to a String which will be logged.

Definition at line 347 of file OWBI1_Logger.hpp.

#define OWBI1_LOG_INFO logger,
message   ) 
 

Value:

do \
{ \
   if ((logger)->getLogLevel() >= ::OWBI1::E_INFO_LEVEL) \
   { \
      (logger)->logMessage(::OWBI1::Logger::STR_INFO_CATEGORY, (message), __FILE__, __LINE__, OWBI1_LOGGER_PRETTY_FUNCTION); \
   } \
} while (0)
Log message to logger with the Info level.

message is only evaluated if logger->getLogLevel() >= E_INFO_LEVEL __FILE__ and __LINE__ are logged.

Parameters:
logger The logger to use.
message An expression that evaluates to a String which will be logged.

Definition at line 317 of file OWBI1_Logger.hpp.

#define OWBI1_LOGGER_PRETTY_FUNCTION   ""
 

Definition at line 293 of file OWBI1_Logger.hpp.


Generated on Thu Feb 9 09:10:04 2006 for openwbem by  doxygen 1.4.6