ITLogLib class overview

An ITLogLib object represents the logging library. You use ITLogLib objects mainly to:

§      initialize the library

§      open logchannels

§      get detailled information about errors which occurred

 

There is always only one logging library instance in your process, but you can have multiple ITLogLib objects to access it.

 

Visual Basic Specific (but might also apply to some other languages):

In Visual Basic you don’t need to create instances of this class, since it is a GlobalMultiUse class. Simply call its functions as if they were global functions.

Example

To initialize the LogLib you can use of these ways:

·      Recommended way for Visual Basic:

If Not ITLogLib2.Initialize(AppName, ConfigFile, LicenseKey) Then

 …

End If

(You could omit "ITLogLib2.", but that would make the call to Initialize harder understandable and more ambiguous.)

·      Way analogous to many other languages:

Dim LogLib As New ITLogLib2.ITLogLib

If Not LogLib.Initialize(AppName, ConfigFile, LicenseKey) Then

 …

End If

See also: ITLogLib.Initialize.