New Logger (gb.logging)

Dim hLogger As Logger
hLogger = New Logger ( [ iMinLevel As Integer, sFormat As String, sOutput As String ] )

Creates a new Logger object targeting the log file specified by sOutput. The minimum acceptable message level is specified by the iMinLevel parameter.

If sOutput is not specified then log messages are sent to stdout.

Messages sent with a level lower than iMinLevel are ignored.

If sOutput is specified as a protected logfile (e.g. var/log/syslog) then the program or user must have the appropriate credentials to write to that file.