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 ITLogLibInitialize()

·      logging operations: see below

·      deinitialization of the logging library: done by calling ITLogLibDeinitialize()
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 one of the QuickLog or one of the ITLogMsgCreate function.

·      The logging output can go to one or more (output) logchannels -- output streams for logmessages. Logchannels are represented by HLOGCHANNEL handles.

·      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 ITLogLibOpenLogChannel() 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
ITLogLibCloseLogChannel().