General sequence of actions

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

§      providing a logging configuration file: use the ITConfigManager shipped with iTech Logging

§      initialization of the logging library: done by calling GetITLogLib().Initialize()

§      logging operations: see below

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

More about initalization:

When your main program starts, the single instance of class ITLogLib representing the logging library already exists and can be accessed using GetITLogLib(). But the logging library itself still isn’t initialized. So one of your first steps should be to call GetITLogLib().Initialize() to initialize the library.

 

More about logging operations:

§      The logging output of the program consists of logmessages. A logmessage can be produced using the QuickLog function or the ITLogMsg class.

§      The logging output can go to one or more (output) logchannels -- 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 GetITLogLib().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 GetITLogLib().
CloseLogChannel().