phrSetLogFileOn function

Set log file on/off.