; IMHO:
; Each "Logging" function should store and restore @error and @extended
; I think that as each "Logging" function should be transparent to the script
; The following example script shows what I mean
_main()
Exit
Func _main()
; this following line is only for keep Clean in SciTE console (Output Pane)
ConsoleWrite(@CRLF & @CRLF & '+ >>>> SCRIPT START' & @CRLF)
; here you start some function