Writes event to log file if logging is on
Miscellaneous.au3 _LogWrite( [ $sText [, $sLogFile = "" ]) |
$sText | Event to log in format: current date time $sText |
$sLogFile | Log file to write to, if empty then file set by _LogFile is used |
boolean value | True = Event has been written, False = Logging is off or couldn't open log file |
_LogSwitch, _LogIsOn, _LogFile, _LogDelete, _LogRead
_LogSwitch( True ) ; switch logging on
....
_LogWrite( "There's a failure over here" ) ; writes (if logging is on)
current date and time plus "There's a ..." to log file