UnindentLog

Function LogMsg(context :^loggingContexts, msg: String, indentBefore: Integer=0, indentAfter: Integer=0) : Boolean

context: A loggingContext created by CreateLoggingContext

msg: The message to log

indentBefore: How many times to indent the log before logging the message

indentAfter: How many times to indent the log after logging the message

Returns TRUE on success

This function appends msg to the loggingContext's logFile and to the logFile of any child loggingContexts. (detailed example).

Example:

Program
   Uses

       hlog

Var
   verboseLog: ^loggingContexts
   debugLog: ^loggingContexts
   errorLog: ^loggingContexts
   
Begin
   verboseLog = CreateLoggingContext("verbose.log", FALSE)
   debugLog = CreateLoggingContext("debug.log", TRUE)
   errorLog = CreateLoggingContext("error.log", TRUE)
   
   LogMsg(errorLog, "Start")
       LogMsg(errorLog, "Something Terrible Happened", 1, -1) // Indented
   LogMsg(errorLog, "End")
   
   MessageBox("Done")
End