ITOutputLogChannel.CreateLogMsg

 

Function CreateLogMsg(Module As String, Case As String, [LogLevel As Integer = 1]) As ITLogMsg

 

Purpose:

§      creates 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 no file output will occur.

 

See also:

§      Creating ITLogMsg objects