#Log Object

Does operations on the log file.

Methods and properties

Method Debug ( message As String )
Writes information to the log file that can help a user with a problem.
Method Info ( message As String )
Writes information to the log file.
Method Special ( message As String, Optional level As UInt )
Writes information special to the program to the log file.
Method Warning ( message As String )
Writes information about a warning to the log file.
Method Error ( message As String )
Writes information about a non-fatel error to the log file.
Method Fatal ( message As String )
Writes information about a fatel error to the log file.
Property Level As LogLevels
Gets or sets the minimum level of information to write to the log file. Values include: LogNone, LogErrors, LogWarnings, LogInfo (default), LogSpecial, and LogAll.

Instructions

The object #Log is always available to use in your programs. This is different from the log file methods supplied by #Debug. #Debug is ignored by the compiler unless you make a debug build.

Special levels

You can make a maximum of five levels to log special conditions. LogLevels gives you LogSpecial, LogSpecial2, LogSpecial3, LogSpecial4, and LogSpecial5.

Examples

TODO2

See also