Customization > Automation Interface > Functions > For System Simulations > Reporting Functions > EnableFileLogging function (automation interface)
  
EnableFileLogging function (automation interface)
Syntax:
EnableFileLogging
Enables file logging.
* 
Use SetLogFile to specify the location and name of the log file.