IndentLog
Function IndentLog(context :^loggingContexts, indent: Integer=1) : Boolean
context: A loggingContext created by CreateLoggingContext
indent: How many times to indent or unindent (use a negative value to unindent)
Returns TRUE on success
Use this to make log files more readable.
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")
IndentLog(errorLog)
LogMsg(errorLog, "Something Terrible Happened")
IndentLog(errorLog, -1)
LogMsg(errorLog, "End")
MessageBox("Done")
End