LogFileAccess

Purpose

Tells HomeSeer to not write to the log file. In some cases you may need to access the log file or make a copy of it. If this is attempted when HomeSeer is writing to the file, an error may occur. To avoid this, call this function to disable logging, then access the file, then re-enable logging.

Parameters

Parameter: AllowAccess
Type: boolean
Description: If set to TRUE, HomeSeer logging to the log file is enabled. If set to FALSE, logging is suspended. HomeSeer will continue to buffer log entries internally and then flush them to the log file when logging is re-enabled.

Note that the internally this is implemented as a counter. This allows multiple scripts access to the function. It is very important that you re-enable logging before your script exists. Be sure and trap all possible errors so your script does not terminate before re-enabling logging.

 

Returns

Nothing