comet::call_logger_< OVERRIDE > Struct Template Reference
[Call-loggingCall-logging]

#include <comet/calllog.h>

List of all members.

Static Public Member Functions

bool can_log_call ()
bool can_log_return ()
void log_call (const tstring &iface, const tstring &funcname, const tstring &log)
void log_return (const tstring &iface, const tstring &funcname, const tstring &log, const tstring &retval)
 Called by interfaces to provide call return logging.
Exception handling redirection.
bool can_log_exception ()
void log_exception (const tstring &type, const tstring &desc, const source_info_t &errorSource, const source_info_t &callSource)
 Called by exception handlers to provide logging for errors.

Related Functions

(Note that these are not member functions.)

void comet_log_interface (tostream &os, const com_ptr< IFACE > &iface)
void comet_log (tostream &os, const T &value)
void comet_log_array (tostream &os, const safearray_t< T > &value)


Detailed Description

template<bool OVERRIDE>
struct comet::call_logger_< OVERRIDE >

Default NULL logger and description of 'call logger' concept. Specialise to true to override.
                template<>
                struct call_logger_<true> : stream_call_logger_t<tofstream_comet>
                {
                };
See also:
stream_call_logger_t tofstream_comet


Member Function Documentation

template<bool OVERRIDE>
bool comet::call_logger_< OVERRIDE >::can_log_call  )  [inline, static]
 

Should the call be logged?

Returns:
Return true to allow call to be logged.

template<bool OVERRIDE>
bool comet::call_logger_< OVERRIDE >::can_log_exception  )  [inline, static]
 

Should the error be logged?

Returns:
Return true to allow error to be logged.

template<bool OVERRIDE>
bool comet::call_logger_< OVERRIDE >::can_log_return  )  [inline, static]
 

Should the return values be logged?

Returns:
Return true to allow call return values to be logged.

template<bool OVERRIDE>
void comet::call_logger_< OVERRIDE >::log_call const tstring iface,
const tstring funcname,
const tstring log
[inline, static]
 

Called by interfaces to provide call logging.


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