7.9.8.18. GEL_EnableFileOutput()

Enables writing GEL Text output to a file

Syntax

GEL_EnableFileOutput( “filePath” [, appendToEnd] [, teeToConsole] );

Parameters

filePath is the path of the file to which output should be written.

appendToEnd (optional) indicates whether to append to or overwrite a file. 0 - file content should be overwritten. 1 - append content. The default behaviour is to append.

teeToConsole (optional) indicates whether to send the output to the console as well. 0 - do not send the output. 1 - do send the output. The default behaviour is to send the output to the console.

Description

Enables writting GEL Text output generated by calls such as GEL_TextOut to a file specified by the filePath without affecting any other behaviour

Synchronous

Synchronous from GEL: Yes

Completely synchronous: Yes

Example

GEL_EnableFileOutput(“c:\gel_out\gel_log.txt”);
GEL_EnableFileOutput(“c:\gel_out\gel_log.txt” , 1);
GEL_EnableFileOutput(“c:\gel_out\gel_log.txt”, 0, 1);

Related Topics

GEL_TextOut

GEL_Trace

GEL_DisableFileOutput