OW_Logger.hpp File Reference

#include "OW_config.h"
#include "OW_CommonFwd.hpp"
#include "OW_String.hpp"
#include "OW_LogLevel.hpp"
#include "OW_IntrusiveCountableBase.hpp"
#include "OW_Exception.hpp"

Include dependency graph for OW_Logger.hpp:

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

Go to the source code of this file.

Namespaces

namespace  OW_NAMESPACE

Classes

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

Defines

#define OW_LOGGER_PRETTY_FUNCTION   __PRETTY_FUNCTION__
#define OW_LOG_DEBUG(logger, message)
 Log message to logger with the Debug level.
#define OW_LOG_INFO(logger, message)
 Log message to logger with the Info level.
#define OW_LOG_ERROR(logger, message)
 Log message to logger with the Error level.
#define OW_LOG_FATAL_ERROR(logger, message)
 Log message to logger with the FatalError level.
#define OW_LOG(logger, category, message)
 Log message to logger with the specified category.


Define Documentation

#define OW_LOG logger,
category,
message   ) 
 

Value:

do \
{ \
   if ((logger)->categoryIsEnabled((category))) \
   { \
      (logger)->logMessage((category), (message), __FILE__, __LINE__, OW_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 415 of file OW_Logger.hpp.

#define OW_LOG_DEBUG logger,
message   ) 
 

Value:

do \
{ \
   if ((logger)->getLogLevel() >= ::OW_NAMESPACE::E_DEBUG_LEVEL) \
   { \
      (logger)->logMessage(::OW_NAMESPACE::Logger::STR_DEBUG_CATEGORY, (message), __FILE__, __LINE__, OW_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 354 of file OW_Logger.hpp.

Referenced by OW_NAMESPACE::CIMServer::_getCIMInstances(), OW_NAMESPACE::CIMOMEnvironment::_getIndicationRepLayer(), OW_NAMESPACE::EmbeddedCIMOMEnvironment::_loadConfigItemsFromFile(), OW_NAMESPACE::CIMOMEnvironment::_loadConfigItemsFromFile(), OW_NAMESPACE::IndicationServerImplThread::_processIndication(), OW_NAMESPACE::IndicationServerImplThread::_processIndicationRange(), OW_NAMESPACE::EmbeddedCIMOMEnvironment::_sortServicesForDependencies(), OW_NAMESPACE::CIMOMEnvironment::_sortServicesForDependencies(), OW_NAMESPACE::CIMRepository2::_staticReferencesClass(), OW_NAMESPACE::CIMRepository::_staticReferencesClass(), OW_NAMESPACE::PerlIndicationProviderProxy::activateFilter(), OW_NAMESPACE::NPIPolledProviderProxy::activateFilter(), OW_NAMESPACE::NPIIndicationProviderProxy::activateFilter(), OW_NAMESPACE::CMPIIndicationProviderProxy::activateFilter(), OW_NAMESPACE::PollingManagerThread::addPolledProvider(), OW_NAMESPACE::RemoteAssociatorProvider::associatorNames(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::associatorNames(), OW_NAMESPACE::PerlAssociatorProviderProxy::associatorNames(), OW_NAMESPACE::NPIAssociatorProviderProxy::associatorNames(), OW_NAMESPACE::CMPIAssociatorProviderProxy::associatorNames(), OW_NAMESPACE::RemoteAssociatorProvider::associators(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::associators(), OW_NAMESPACE::PerlAssociatorProviderProxy::associators(), OW_NAMESPACE::NPIAssociatorProviderProxy::associators(), OW_NAMESPACE::CMPIAssociatorProviderProxy::associators(), OW_NAMESPACE::PerlIndicationProviderProxy::authorizeFilter(), OW_NAMESPACE::NPIIndicationProviderProxy::authorizeFilter(), OW_NAMESPACE::CMPIIndicationProviderProxy::authorizeFilter(), CIMOMDeliverInstanceEvent(), OW_NAMESPACE::cleanupInteropInstance(), OW_NAMESPACE::SafeLibCreate< T >::create(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::createInstance(), OW_NAMESPACE::RemoteInstanceProvider::createInstance(), OW_NAMESPACE::CIM_NamespaceInstProv::createInstance(), OW_NAMESPACE::PerlInstanceProviderProxy::createInstance(), OW_NAMESPACE::NPIInstanceProviderProxy::createInstance(), OW_NAMESPACE::NameSpaceProvider::createInstance(), OW_NAMESPACE::CMPIInstanceProviderProxy::createInstance(), OW_NAMESPACE::CIMRepository2::createInstance(), OW_NAMESPACE::CIMRepository::createInstance(), OW_NAMESPACE::CIMRepository2::createNameSpace(), OW_NAMESPACE::ProviderIFCLoaderBase::createProviderIFCFromLib(), OW_NAMESPACE::IndicationServerImplThread::createSubscription(), OW_NAMESPACE::PerlIndicationProviderProxy::deActivateFilter(), OW_NAMESPACE::NPIPolledProviderProxy::deactivateFilter(), OW_NAMESPACE::NPIIndicationProviderProxy::deActivateFilter(), OW_NAMESPACE::CMPIIndicationProviderProxy::deActivateFilter(), OW_NAMESPACE::CIMRepository2::deleteClass(), OW_NAMESPACE::CIMRepository::deleteClass(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::deleteInstance(), OW_NAMESPACE::RemoteInstanceProvider::deleteInstance(), OW_NAMESPACE::CIM_NamespaceInstProv::deleteInstance(), OW_NAMESPACE::PerlInstanceProviderProxy::deleteInstance(), OW_NAMESPACE::NPIInstanceProviderProxy::deleteInstance(), OW_NAMESPACE::CMPIInstanceProviderProxy::deleteInstance(), OW_NAMESPACE::CIMServer::deleteInstance(), OW_NAMESPACE::CIMRepository2::deleteInstance(), OW_NAMESPACE::CIMRepository::deleteInstance(), OW_NAMESPACE::CIMRepository2::deleteNameSpace(), OW_NAMESPACE::IndicationServerImplThread::deleteSubscription(), OWBI1::BI1ProviderIFC::doGetAssociatorProvider(), OW_NAMESPACE::PerlProviderIFC::doGetAssociatorProvider(), OW_NAMESPACE::NPIProviderIFC::doGetAssociatorProvider(), OW_NAMESPACE::CppProviderIFC::doGetAssociatorProvider(), OW_NAMESPACE::CMPIProviderIFC::doGetAssociatorProvider(), OWBI1::BI1ProviderIFC::doGetIndicationProvider(), OW_NAMESPACE::PerlProviderIFC::doGetIndicationProvider(), OW_NAMESPACE::NPIProviderIFC::doGetIndicationProvider(), OW_NAMESPACE::CppProviderIFC::doGetIndicationProvider(), OW_NAMESPACE::CMPIProviderIFC::doGetIndicationProvider(), OWBI1::BI1ProviderIFC::doGetInstanceProvider(), OW_NAMESPACE::PerlProviderIFC::doGetInstanceProvider(), OW_NAMESPACE::NPIProviderIFC::doGetInstanceProvider(), OW_NAMESPACE::CppProviderIFC::doGetInstanceProvider(), OW_NAMESPACE::CMPIProviderIFC::doGetInstanceProvider(), OWBI1::BI1ProviderIFC::doGetMethodProvider(), OW_NAMESPACE::PerlProviderIFC::doGetMethodProvider(), OW_NAMESPACE::NPIProviderIFC::doGetMethodProvider(), OW_NAMESPACE::CppProviderIFC::doGetMethodProvider(), OW_NAMESPACE::CMPIProviderIFC::doGetMethodProvider(), OWBI1::BI1ProviderIFC::doGetSecondaryInstanceProvider(), OW_NAMESPACE::CppProviderIFC::doGetSecondaryInstanceProvider(), OW_NAMESPACE::CIMRepositoryImpl::instEnumerator::doHandle(), OW_NAMESPACE::RemoteProviderInterface::doInit(), OW_NAMESPACE::MOF::LoggerErrHandler::doProgressMessage(), OW_NAMESPACE::CIM_NamespaceInstProv::doSimpleEnumInstances(), OW_NAMESPACE::CIMRepository2::enumClasses(), OW_NAMESPACE::CIMRepository::enumClasses(), OW_NAMESPACE::CIMRepository2::enumClassNames(), OW_NAMESPACE::CIMRepository::enumClassNames(), OW_NAMESPACE::RemoteInstanceProvider::enumInstanceNames(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::enumInstanceNames(), OW_NAMESPACE::PerlInstanceProviderProxy::enumInstanceNames(), OW_NAMESPACE::NPIInstanceProviderProxy::enumInstanceNames(), OW_NAMESPACE::CMPIInstanceProviderProxy::enumInstanceNames(), OW_NAMESPACE::CIMRepository2::enumInstanceNames(), OW_NAMESPACE::RemoteInstanceProvider::enumInstances(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::enumInstances(), OW_NAMESPACE::PerlInstanceProviderProxy::enumInstances(), OW_NAMESPACE::NPIInstanceProviderProxy::enumInstances(), OW_NAMESPACE::CMPIInstanceProviderProxy::enumInstances(), OW_NAMESPACE::CIMRepository2::enumInstances(), OW_NAMESPACE::CIMRepository::enumInstances(), OW_NAMESPACE::CIMRepository2::enumNameSpace(), OW_NAMESPACE::CIMRepository::enumNameSpace(), OW_NAMESPACE::CIMRepository2::enumQualifierTypes(), OW_NAMESPACE::CIMRepository::enumQualifierTypes(), OW_NAMESPACE::CppIndicationExportXMLHTTPProvider::exportIndication(), OW_NAMESPACE::CIMOMEnvironment::exportIndication(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::filterInstances(), OW_NAMESPACE::CIMRepository2::getClass(), OW_NAMESPACE::CIMRepository::getClass(), OW_NAMESPACE::UnloaderProvider::getInitialPollingInterval(), OW_NAMESPACE::NPIPolledProviderProxy::getInitialPollingInterval(), OW_NAMESPACE::RemoteInstanceProvider::getInstance(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::getInstance(), OW_NAMESPACE::PerlInstanceProviderProxy::getInstance(), OW_NAMESPACE::NPIInstanceProviderProxy::getInstance(), OW_NAMESPACE::CMPIInstanceProviderProxy::getInstance(), OW_NAMESPACE::CIMServer::getInstance(), OW_NAMESPACE::CIMRepository2::getQualifierType(), OW_NAMESPACE::CIMRepository::getQualifierType(), OW_NAMESPACE::CIMOMEnvironment::getRequestHandler(), OW_NAMESPACE::EmbeddedCIMOMEnvironment::getWQLRef(), OW_NAMESPACE::CIMOMEnvironment::getWQLRef(), OW_NAMESPACE::IndicationServerImplThread::init(), OW_NAMESPACE::NameSpaceProvider::initialize(), OW_NAMESPACE::RemoteMethodProvider::invokeMethod(), OW_NAMESPACE::PerlMethodProviderProxy::invokeMethod(), OW_NAMESPACE::NPIMethodProviderProxy::invokeMethod(), OW_NAMESPACE::CMPIMethodProviderProxy::invokeMethod(), OW_NAMESPACE::CIMServer::invokeMethod(), OW_NAMESPACE::SafeLibCreate< T >::loadAndCreateObject(), OW_NAMESPACE::ProviderIFCLoader::loadIFCs(), OWBI1::BI1ProviderIFC::loadProvider(), OW_NAMESPACE::CppProviderIFC::loadProvider(), OWBI1::BI1ProviderIFC::loadProviders(), mbAssociatorNames(), mbAssociators(), mbCreateInstance(), mbDeleteInstance(), mbEncNewArray(), mbEncNewInstance(), mbEncNewObjectPath(), mbEnumInstanceNames(), mbEnumInstances(), mbExecQuery(), mbGetClass(), mbGetInstance(), mbGetProperty(), mbInvokeMethod(), mbModifyInstance(), mbReferenceNames(), mbReferences(), mbSetProperty(), OW_NAMESPACE::CIMRepository2::modifyClass(), OW_NAMESPACE::CIMRepository::modifyClass(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::modifyInstance(), OW_NAMESPACE::RemoteInstanceProvider::modifyInstance(), OW_NAMESPACE::PerlInstanceProviderProxy::modifyInstance(), OW_NAMESPACE::NPIInstanceProviderProxy::modifyInstance(), OW_NAMESPACE::CMPIInstanceProviderProxy::modifyInstance(), OW_NAMESPACE::PerlIndicationProviderProxy::mustPoll(), OW_NAMESPACE::NPIIndicationProviderProxy::mustPoll(), OW_NAMESPACE::CMPIIndicationProviderProxy::mustPoll(), OW_NAMESPACE::NPIPolledProviderProxy::poll(), OW_NAMESPACE::LifecycleIndicationPoller::poll(), OW_NAMESPACE::RemoteAssociatorProvider::referenceNames(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::referenceNames(), OW_NAMESPACE::PerlAssociatorProviderProxy::referenceNames(), OW_NAMESPACE::NPIAssociatorProviderProxy::referenceNames(), OW_NAMESPACE::CMPIAssociatorProviderProxy::referenceNames(), OW_NAMESPACE::RemoteAssociatorProvider::references(), OW_NAMESPACE::CIM_NamespaceInManagerInstProv::references(), OW_NAMESPACE::PerlAssociatorProviderProxy::references(), OW_NAMESPACE::NPIAssociatorProviderProxy::references(), OW_NAMESPACE::CMPIAssociatorProviderProxy::references(), OW_NAMESPACE::registerProviderInfo(), OW_NAMESPACE::PollingManagerThread::run(), OW_NAMESPACE::CIMRepository2::setQualifierType(), OW_NAMESPACE::CIMRepository::setQualifierType(), OW_NAMESPACE::HTTPServer::shutdown(), OW_NAMESPACE::EmbeddedCIMOMEnvironment::shutdown(), OW_NAMESPACE::CIMOMEnvironment::shutdown(), OW_NAMESPACE::HTTPServer::start(), OW_NAMESPACE::EmbeddedCIMOMEnvironment::startServices(), OW_NAMESPACE::CIMOMEnvironment::startServices(), OW_NAMESPACE::CIMOMEnvironment::unloadReqHandlers(), and OW_NAMESPACE::AssocDb::~AssocDb().

#define OW_LOG_ERROR logger,
message   ) 
 

Value:

do \
{ \
   if ((logger)->getLogLevel() >= ::OW_NAMESPACE::E_ERROR_LEVEL) \
   { \
      (logger)->logMessage(::OW_NAMESPACE::Logger::STR_ERROR_CATEGORY, (message), __FILE__, __LINE__, OW_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 384 of file OW_Logger.hpp.

Referenced by OW_NAMESPACE::IndicationServerImplThread::_processIndication(), OW_NAMESPACE::AssocDb::addEntry(), OW_NAMESPACE::IndicationServerImplThread::addTrans(), OW_NAMESPACE::LocalAuthentication::cleanupEntry(), OW_NAMESPACE::SafeLibCreate< T >::create(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::createInstance(), OW_NAMESPACE::dbErrorCallback(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::deleteInstance(), OW_NAMESPACE::MOF::LoggerErrHandler::doFatalError(), OWBI1::BI1ProviderIFC::doGetAssociatorProvider(), OW_NAMESPACE::PerlProviderIFC::doGetAssociatorProvider(), OW_NAMESPACE::NPIProviderIFC::doGetAssociatorProvider(), OW_NAMESPACE::CppProviderIFC::doGetAssociatorProvider(), OW_NAMESPACE::CMPIProviderIFC::doGetAssociatorProvider(), OWBI1::BI1ProviderIFC::doGetIndicationProvider(), OW_NAMESPACE::PerlProviderIFC::doGetIndicationProvider(), OW_NAMESPACE::NPIProviderIFC::doGetIndicationProvider(), OW_NAMESPACE::CppProviderIFC::doGetIndicationProvider(), OW_NAMESPACE::CMPIProviderIFC::doGetIndicationProvider(), OWBI1::BI1ProviderIFC::doGetInstanceProvider(), OW_NAMESPACE::PerlProviderIFC::doGetInstanceProvider(), OW_NAMESPACE::NPIProviderIFC::doGetInstanceProvider(), OW_NAMESPACE::CppProviderIFC::doGetInstanceProvider(), OW_NAMESPACE::CMPIProviderIFC::doGetInstanceProvider(), OWBI1::BI1ProviderIFC::doGetMethodProvider(), OW_NAMESPACE::PerlProviderIFC::doGetMethodProvider(), OW_NAMESPACE::NPIProviderIFC::doGetMethodProvider(), OW_NAMESPACE::CppProviderIFC::doGetMethodProvider(), OW_NAMESPACE::CMPIProviderIFC::doGetMethodProvider(), OWBI1::BI1ProviderIFC::doGetSecondaryInstanceProvider(), OW_NAMESPACE::CppProviderIFC::doGetSecondaryInstanceProvider(), OW_NAMESPACE::RemoteProviderInterface::doInit(), OW_NAMESPACE::MOF::LoggerErrHandler::doRecoverableError(), OW_NAMESPACE::SLPProvider::doSlpRegister(), OW_NAMESPACE::ProviderManager::getProviderIFC(), OW_NAMESPACE::RemoteProviderUtils::getRemoteClientCIMOMHandle(), OW_NAMESPACE::CIMOMEnvironment::getRequestHandler(), OW_NAMESPACE::EmbeddedCIMOMEnvironment::getWQLRef(), OW_NAMESPACE::CIMOMEnvironment::getWQLRef(), OW_NAMESPACE::PerlProviderIFC::loadNoIdProviders(), OW_NAMESPACE::NPIProviderIFC::loadNoIdProviders(), OW_NAMESPACE::CMPIProviderIFC::loadNoIdProviders(), OWBI1::BI1ProviderIFC::loadProvider(), OW_NAMESPACE::CppProviderIFC::loadProvider(), OWBI1::BI1ProviderIFC::loadProviders(), OW_NAMESPACE::PerlProviderIFC::loadProviders(), OW_NAMESPACE::CppProviderIFC::loadProviders(), OW_NAMESPACE::dlSharedLibraryLoader::loadSharedLibrary(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::modifyInstance(), OW_NAMESPACE::LifecycleIndicationPoller::poll(), OW_NAMESPACE::processProviderClassExtraInfo(), OW_NAMESPACE::processProviderInfo(), OW_NAMESPACE::registerProviderInfo(), OW_NAMESPACE::PollingManagerThread::TriggerRunner::run(), OW_NAMESPACE::IndicationServerImplThread::run(), OW_NAMESPACE::OpenWBEM_ObjectManagerInstProv::shuttingDown(), OW_NAMESPACE::slpRegReport(), OW_NAMESPACE::HTTPServer::start(), OW_NAMESPACE::CIMOMEnvironment::unloadReqHandlers(), OW_NAMESPACE::BinaryRequestHandler::writeFileName(), OW_NAMESPACE::CIMOMEnvironment::~CIMOMEnvironment(), and OW_NAMESPACE::EmbeddedCIMOMEnvironment::~EmbeddedCIMOMEnvironment().

#define OW_LOG_FATAL_ERROR logger,
message   ) 
 

Value:

do \
{ \
   if ((logger)->getLogLevel() >= ::OW_NAMESPACE::E_FATAL_ERROR_LEVEL) \
   { \
      (logger)->logMessage(::OW_NAMESPACE::Logger::STR_FATAL_CATEGORY, (message), __FILE__, __LINE__, OW_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 399 of file OW_Logger.hpp.

Referenced by OW_NAMESPACE::CIMOMEnvironment::_createIndicationServer(), OW_NAMESPACE::CIMOMEnvironment::_getIndicationRepLayer(), OW_NAMESPACE::AuthManager::init(), and main().

#define OW_LOG_INFO logger,
message   ) 
 

Value:

do \
{ \
   if ((logger)->getLogLevel() >= ::OW_NAMESPACE::E_INFO_LEVEL) \
   { \
      (logger)->logMessage(::OW_NAMESPACE::Logger::STR_INFO_CATEGORY, (message), __FILE__, __LINE__, OW_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 369 of file OW_Logger.hpp.

Referenced by OW_NAMESPACE::RemoteAssociatorProvider::associatorNames(), OW_NAMESPACE::RemoteAssociatorProvider::associators(), OW_NAMESPACE::SafeLibCreate< T >::create(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::createInstance(), OW_NAMESPACE::RemoteInstanceProvider::createInstance(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::deleteInstance(), OW_NAMESPACE::RemoteInstanceProvider::deleteInstance(), OW_NAMESPACE::HTTPServerSelectableCallback::doSelected(), OWBI1::BI1ProviderIFC::doUnloadProviders(), OW_NAMESPACE::CppProviderIFC::doUnloadProviders(), OW_NAMESPACE::RemoteInstanceProvider::enumInstanceNames(), OW_NAMESPACE::RemoteInstanceProvider::enumInstances(), OW_NAMESPACE::RemoteInstanceProvider::getInstance(), OW_NAMESPACE::AuthManager::init(), OW_NAMESPACE::RemoteMethodProvider::invokeMethod(), OWBI1::BI1ProviderIFC::loadProviders(), OW_NAMESPACE::CppProviderIFC::loadProviders(), main(), OW_NAMESPACE::RemoteSecondaryInstanceProvider::modifyInstance(), OW_NAMESPACE::RemoteInstanceProvider::modifyInstance(), OW_NAMESPACE::MetaRepository::open(), OW_NAMESPACE::PollingManagerThread::processTriggers(), OW_NAMESPACE::RemoteAssociatorProvider::referenceNames(), OW_NAMESPACE::RemoteAssociatorProvider::references(), OW_NAMESPACE::CIMServer::setProperty(), and OW_NAMESPACE::HTTPServer::start().

#define OW_LOGGER_PRETTY_FUNCTION   __PRETTY_FUNCTION__
 

Definition at line 341 of file OW_Logger.hpp.


Generated on Thu Feb 9 09:01:54 2006 for openwbem by  doxygen 1.4.6