EsbGetLogFile() copies all or part of an application log file from the server to the client.
EsbGetLogFile (hCtx, AppName, TimeStamp, LocalName)
ByVal hCtx As Long ByVal AppName As String ByVal TimeStamp As Long ByVal LocalName As String,
hCtx | Essbase VB API context handle |
AppName | Application name. If AppName = " ", the Essbase.log is returned. |
TimeStamp | Time stamp, indicating date & time of earliest log file entry required |
LocalName | Full path name of local destination file on client |
Declare Function EsbGetLogFile Lib "ESBAPIW" (ByVal hCtx As Long, ByVal AppName As String, ByVal TimeStamp As Long, ByVal LocalName As String) As Long Sub ESB_GetLogFile () Dim sts As Long Dim AppName As String Dim TimeStamp As Long Dim LocalName As String AppName = "Sample" '*************** ' Get everything '*************** TimeStamp = 0 LocalName = "c:\essbase\client\test.log" '************* ' Get Log File '************* sts = EsbGetLogFile (hCtx, AppName, TimeStamp, LocalName) End SubEsbDeleteLogFile()