DefaultLogHandler Class Reference

Inheritance diagram for DefaultLogHandler:

XmlRpc::XmlRpcLogHandler List of all members.

Public Member Functions

void log (int level, const char *msg)
 Output a message. Custom error handlers should define this method.

Static Public Member Functions

static XmlRpcLogHandler * getLogHandler ()
 Returns a pointer to the currently installed message reporting object.
static void setLogHandler (XmlRpcLogHandler *lh)
 Specifies the message handler.
static int getVerbosity ()
 Returns the level of verbosity of informational messages. 0 is no output, 5 is very verbose.
static void setVerbosity (int v)
 Specify the level of verbosity of informational messages. 0 is no output, 5 is very verbose.

Static Protected Attributes

static XmlRpcLogHandler * _logHandler = &defaultLogHandler
static int _verbosity = 0

Detailed Description

Definition at line 30 of file XmlRpcUtil.cpp.


Member Function Documentation

static XmlRpcLogHandler* XmlRpc::XmlRpcLogHandler::getLogHandler (  )  [inline, static, inherited]

Returns a pointer to the currently installed message reporting object.

Definition at line 60 of file XmlRpc.h.

References XmlRpc::XmlRpcLogHandler::_logHandler.

Referenced by XmlRpc::XmlRpcUtil::log().

00061     { return _logHandler; }

static int XmlRpc::XmlRpcLogHandler::getVerbosity (  )  [inline, static, inherited]

Returns the level of verbosity of informational messages. 0 is no output, 5 is very verbose.

Definition at line 68 of file XmlRpc.h.

References XmlRpc::XmlRpcLogHandler::_verbosity.

Referenced by XmlRpc::XmlRpcUtil::log().

00069     { return _verbosity; }

void DefaultLogHandler::log ( int  level,
const char *  msg 
) [inline, virtual]

Output a message. Custom error handlers should define this method.

Implements XmlRpc::XmlRpcLogHandler.

Definition at line 33 of file XmlRpcUtil.cpp.

References XmlRpc::XmlRpcLogHandler::_verbosity.

00033                                        { 
00034 #ifdef USE_WINDOWS_DEBUG
00035     if (level <= _verbosity) { OutputDebugString(msg); OutputDebugString("\n"); }
00036 #else
00037     if (level <= _verbosity) std::cout << msg << std::endl; 
00038 #endif  
00039   }

static void XmlRpc::XmlRpcLogHandler::setLogHandler ( XmlRpcLogHandler lh  )  [inline, static, inherited]

Specifies the message handler.

Definition at line 64 of file XmlRpc.h.

References XmlRpc::XmlRpcLogHandler::_logHandler.

00065     { _logHandler = lh; }

static void XmlRpc::XmlRpcLogHandler::setVerbosity ( int  v  )  [inline, static, inherited]

Specify the level of verbosity of informational messages. 0 is no output, 5 is very verbose.

Definition at line 72 of file XmlRpc.h.

References XmlRpc::XmlRpcLogHandler::_verbosity.

00073     { _verbosity = v; }


Member Data Documentation

XmlRpcLogHandler * XmlRpcLogHandler::_logHandler = &defaultLogHandler [static, protected, inherited]

Definition at line 79 of file XmlRpc.h.

Referenced by XmlRpc::XmlRpcLogHandler::getLogHandler(), and XmlRpc::XmlRpcLogHandler::setLogHandler().

int XmlRpcLogHandler::_verbosity = 0 [static, protected, inherited]

Definition at line 80 of file XmlRpc.h.

Referenced by XmlRpc::XmlRpcLogHandler::getVerbosity(), log(), and XmlRpc::XmlRpcLogHandler::setVerbosity().


Generated on Tue Nov 29 23:18:16 2016 for BOSS_7.0.2 by  doxygen 1.4.7