Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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

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

Static Protected Attributes

XmlRpcLogHandler_logHandler = &defaultLogHandler
int _verbosity = 0

Member Function Documentation

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

Returns a pointer to the currently installed message reporting object.

00061     { return _logHandler; }

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

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

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.

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   }

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

Specifies the message handler.

00065     { _logHandler = lh; }

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.

00073     { _verbosity = v; }


Member Data Documentation

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

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


The documentation for this class was generated from the following file:
Generated on Wed Feb 2 15:57:40 2011 for BOSS6.5.5 by  doxygen 1.3.9.1