Logger() (gb.logging)

Sub Logger ( sMessage As String [ , iLevel As Integer ] )

A message is sent to an active Logger object by using the object as a function.
  • sMessage is the text to be sent to the log file (after formatting)

  • iLevel is the message level (see Logger constants).


Dim hLog as New Logger(Logger.Warning)

hLog("Something suspicious has occurred!",Logger.Warning)

will produce something like

[10/22/2013 16:23:58.615] [WARNING] Something suspicious has occurred!

(depending on the Format of the active logger object.)