ReadEntireLog - cWebAppLogReader
Retrieves the complete log file
Type: Function
Return Data Type: tWebAppLogEntry[]
Syntax
Function ReadEntireLog Returns tWebAppLogEntry[]
Call Example
Get ReadEntireLog to tWebAppLogEntry[]Variable
Description
Retrieves the complete log file into an array.
Sample
This sample shows how to read a complete web app log into a tWebAppLogEntry array. In this sample, the name of the web app is passed to the sample procedure in String sWebApp.
Object oLogReader is a cWebAppLogReader
End_Object
// in a cWebButton or other interface
Procedure DisplayLogFromWebApp String sWebApp
Boolean bOk
tWebAppLogEntry[] TheLog
Get OpenWebAppLogFromRegisteredApp of oLogReader sWebApp to bOk
If (bOk) Begin
Get ReadEntireLog of oLogReader to TheLog
Send CloseWebAppLog of oLogReader
End
Else Begin
Send ClearData of oLogGrid
End
End_Procedure
Return Value
Array of log file entries