Inheritance diagram for DefaultLogHandler:
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 |
|
Returns a pointer to the currently installed message reporting object.
00061 { return _logHandler; }
|
|
Returns the level of verbosity of informational messages. 0 is no output, 5 is very verbose.
00069 { return _verbosity; }
|
|
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 }
|
|
Specifies the message handler.
00065 { _logHandler = lh; }
|
|
Specify the level of verbosity of informational messages. 0 is no output, 5 is very verbose.
00073 { _verbosity = v; }
|
|
|
|
|