5 #ifndef _RLOGINTERFACE_H_
6 #define _RLOGINTERFACE_H_
26 #define logCtor() _rMessage(LOGID, RLogInterface::ctorChannel, "constructing %s (%p)", \
27 getTypeName().c_str(), this)
29 #define logCtorVerbose(str,...) _rMessage(LOGID, RLogInterface::ctorChannel, \
30 "constructing %s (%p) "str, \
31 getTypeName().c_str(), this, ##__VA_ARGS__)
33 #define logDtor() _rMessage(LOGID, RLogInterface::dtorChannel, "destroying %s (%p)", \
34 getTypeName().c_str(), this)
36 #define logDtorVerbose(str,...) _rMessage(LOGID, RLogInterface::dtorChannel, \
37 "destroying %s (%p) "str, \
38 getTypeName().c_str(), this, ##__VA_ARGS__)
40 #define logInfo(...) _rMessage(LOGID, RLogInterface::infoChannel, ##__VA_ARGS__)
41 #define logWarning(...) _rMessage(LOGID, RLogInterface::warningChannel, ##__VA_ARGS__)
42 #define logError(...) _rMessage(LOGID, RLogInterface::errorChannel, ##__VA_ARGS__)
46 #define DEFINE_TYPENAME(T) \
47 static string getTypeName() {return T;} \
static rlog::RLogChannel * warningChannel
static rlog::RLogChannel * errorChannel
static rlog::RLogChannel * ctorChannel
static rlog::RLogChannel * dtorChannel
static rlog::RLogChannel * infoChannel