Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter FiveGeneral Functions (continued)

LogToText Function

Overview

The LogToText function copies the contents of a log into an text string.

Syntax/Parameters

Syntax

string = LogToText ( [handle hLog], [boolean newlines] );

Parameters

hLogObject

An optional handle to a Log Object created with the LogCreate function. If this handle is omitted or NULL_HANDLE is specified, the function will apply the error summary to the default log.

newlines

An optional boolean flag indicating to add new line characters to each line ending. The default value is FALSE.

Return Value

Returns a string containing a text rendering of the log or an empty string on failure. Use the GetLastError function to retrieve a formatted error code.

Remarks

The text encoding is the same as the data within the log.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic