General sequence of actions

Here is the general structure of operations by a program using the logging library:

§      initialization of the logging library: done by calling ITLogLib2.Initialize

§      logging operations: see below

§      deinitialization of the logging library: done by calling ITLogLib2.Deinitialize
Deinitializing the logging library results in writing out all pending logmessages.

 

More about logging operations:

§      The logging output of the program consists of logmessages. A logmessage can be produced using the ITLogLib.QuickLog method, the ITOutputLogChannel.Quicklog method or the ITLogMsg class.

§      The logging output can go to one or more (output) logchannels, which are output streams for logmessages. Logchannels are represented by the class ITOutputLogChannel.

§      The standard logchannel, named "StdLog", is opened as part of the initialization of the logging library. It is used as default, whenever the logchannel name or object is omitted in a logging operation.

§      The program can open further logchannels in additional to "StdLog" using ITLogLib.OpenLogChannel and use them from then on.
They are automatically closed as part of the deinitialization of the logging library. You can close them manually by calling ITLogLib2.
CloseLogChannel.