PA_GetLogInfo

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetLogInfo (logInfo)

ParameterTypeDescription
logInfoPA_LogHeader *Information on the current backup log

Description

The routine PA_GetLogInfo returns information on the current logfile in the PA_LogHeader structure pointed to by logInfo.

The PA_LogHeader structure is defined in the header file "PublicTypes.h":

// a logfile starts with this structure,
// then is followed by the number of PA_LogTag
// described in fNbOperations.
typedef struct PA_LogHeader
{
   long      fNbOperations;
   long      fLastFlush;
   PA_long64      fLastAction; // a PA_Long64 is a __int64 or a long long
   PA_long64      fFirstAction;
   long      fLogNumber;
   long      fFiller;
   long      fLastPos;
} PA_LogHeader;

Example

Do something only if there are more than 1000 operations logged on the database.

   PA_LogHeader   lh;
   PA_GetLogInfo(&lh);
   if(lh.NbOperations > 1000
   {
      /* . . . do something . . .*/
   }

See Also

PA_GetLogField.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next