OverSim
DefaultLogHandler Class Reference
Inheritance diagram for DefaultLogHandler:
XmlRpc::XmlRpcLogHandler

Public Member Functions

void log (int level, const char *msg)
 Output a message. Custom error handlers should define this method.
- Public Member Functions inherited from XmlRpc::XmlRpcLogHandler
virtual ~XmlRpcLogHandler ()

Additional Inherited Members

- Static Public Member Functions inherited from XmlRpc::XmlRpcLogHandler
static XmlRpcLogHandlergetLogHandler ()
 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 inherited from XmlRpc::XmlRpcLogHandler
static XmlRpcLogHandler_logHandler = &defaultLogHandler
static int _verbosity = 0

Detailed Description

Definition at line 35 of file XmlRpcUtil.cc.

Member Function Documentation

void DefaultLogHandler::log ( int  level,
const char *  msg 
)
inlinevirtual

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

Implements XmlRpc::XmlRpcLogHandler.

Definition at line 38 of file XmlRpcUtil.cc.

{
#ifdef USE_WINDOWS_DEBUG
if (level <= _verbosity) { OutputDebugString(msg); OutputDebugString("\n"); }
#else
if (level <= _verbosity) std::cout << msg << std::endl;
#endif
}

The documentation for this class was generated from the following file: