_LogWrite

Writes event to log file if logging is on

Miscellaneous.au3
_LogWrite( [ $sText [, $sLogFile = "" ])

parameters

$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

return value

boolean value True = Event has been written, False = Logging is off or couldn't open log file

related

_LogSwitch, _LogIsOn, _LogFile, _LogDelete, _LogRead

example

_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