The Logging Context Type

The loggingContext record exposes the following variables:

Type loggingContexts = Record

   { Properties }
   logFile: String
   entries: Integer
   
   { Flags }

   realtime: Boolean
   enabled: Boolean
   
   { Private }
   buffer: String = ""
   indentation: Integer = 0
   
EndType ; Export

Decription

logFile
The path to the log file that this logging context writes to.
Consider this read-only.

entries
How many entries have been logged. This is useful because if your error logging context has entries > 0 you can create a messagebox when your program ends alerting the user that errors were logged.
Consider this read-only.

realtime
When TRUE, events are instantly appended to log files.
When FALSE, events are stored in the buffer variable.

enabled
When FALSE, LogMsg, IndentLog and CommitLogBuffer are ignored.

buffer
Contains the buffered entries in a string.
Consider this read-only.

Indentation
The level of indentation for log entries.