ITLogMsg CreateLogMsg(
const char* pModuleName, const char* pCaseName,
const ITLogLevel LogLevel = LEVEL_INFO);
Purpose:
§ create a logmessage object
This object is linked with the logchannel. It can be filled and then sent to the logchannel by calling its method Send, for instance.
Return value:
§ If the logchannel is open and the Module and Case names pass the write-out filter condition defined for the logchannel in the configuration file then a smart pointer to a new logmessage object is returned.
§ Else (logchannel not open or logmessage filtered out) you get a smart pointer to a special logmessage object. With this can still use all normal ITLogMsg operations, but at the end not file output will occur.
See also:
§ class ITLogMsg
§ method ITLogMsg::WillBeLogged