Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages
comet::stream_call_logger_t< CREATESTREAM > Struct Template Reference
[Call-logging, Call-logging]
#include <comet/calllog.h>
Static Public Member Functions | |
| bool | can_log_call () |
| bool | can_log_return () |
| bool | can_log_exception () |
| 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) |
| void | log_exception (const tstring &type, const tstring &desc, const source_info_t &errorSource, const source_info_t &callSource) |
Static Protected Member Functions | |
| void | log_ (bool return_val, const tstring &iface, const tstring &funcname, const tstring &log, const tstring &retval) |
| tostream * | logger () |
Detailed Description
template<typename CREATESTREAM>
struct comet::stream_call_logger_t< CREATESTREAM >
Log calls to a tostream. A class/struct that subscribes to and implements the 'call logger' concept for a steam. Template paramter is expected to be a class that has a method that creates a tostream instance as follows: static tostream *create()
- Parameters:
-
CREATESTREAM Class with a static function create()that returns a tostream *
- See also:
- tofstream_comet call_logger_
The documentation for this struct was generated from the following file: