Log File Operations

Functions

kvmStatus kvmLogFileGetCount (kvmHandle h, uint32 *fileCount)
 
kvmStatus kvmLogFileGetType (kvmHandle h, uint32 fileIndx, int32 *logFileType)
 
kvmStatus kvmLogFileMount (kvmHandle h, uint32 fileIndx, uint32 *eventCount)
 
kvmStatus kvmLogFileMountEx (kvmHandle h, uint32 fileIndx, int64 *eventCount)
 
kvmStatus kvmLogFileDismount (kvmHandle h)
 
kvmStatus kvmLogFileGetStartTime (kvmHandle h, uint32 *startTime)
 
kvmStatus kvmLogFileGetEndTime (kvmHandle h, uint32 *endTime)
 
kvmStatus kvmLogFileGetCreatorSerial (kvmHandle h, uint32 *serialNumber)
 
kvmStatus kvmLogFileReadEvent (kvmHandle h, kvmLogEventEx *e)
 
kvmStatus kvmLogFileDeleteAll (kvmHandle h)
 

Detailed Description

Function Documentation

◆ kvmLogFileDeleteAll()

kvmStatus kvmLogFileDeleteAll ( kvmHandle  h)
C#
static Kvmlib.STATUS LogFileDeleteAll(Kvmlib.Handle h);

Delete all log files from a Memorator.

Parameters
[in]hAn open kvmHandle.
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure

◆ kvmLogFileDismount()

kvmStatus kvmLogFileDismount ( kvmHandle  h)
C#
static Kvmlib.STATUS LogFileDismount(Kvmlib.Handle h);

Dismount the log file opened with kvmLogFileMountEx(). The handle will stay valid.

Parameters
[in]hAn open kvmHandle.

◆ kvmLogFileGetCount()

kvmStatus kvmLogFileGetCount ( kvmHandle  h,
uint32 fileCount 
)
C#
static Kvmlib.STATUS LogFileGetCount(Kvmlib.Handle h, out Int32 fileCount);

Count the number of log files

Parameters
[in]hAn open kvmHandle.
[out]fileCountThe number of log files on disk.
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure

◆ kvmLogFileGetCreatorSerial()

kvmStatus kvmLogFileGetCreatorSerial ( kvmHandle  h,
uint32 serialNumber 
)
C#
static Kvmlib.STATUS LogFileGetCreatorSerial(Kvmlib.Handle h, out Int32 serialNumber);

Get the serialnumber of the interface that created the log file.

Parameters
[in]hAn open kvmHandle.
[out]serialNumberThe serialnumber of the interface that created the log file.
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure

◆ kvmLogFileGetEndTime()

kvmStatus kvmLogFileGetEndTime ( kvmHandle  h,
uint32 endTime 
)
C#
static Kvmlib.STATUS LogFileGetEndTime(Kvmlib.Handle h, out Int32 endTime);

Get the time of the first event in the log file. The time is returned in standard unix time format (number of seconds since 1970-01-01T00:00:00+00:00).

Parameters
[in]hAn open kvmHandle.
[out]endTimeThe time of the last event in the log file (UTC)
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure

◆ kvmLogFileGetStartTime()

kvmStatus kvmLogFileGetStartTime ( kvmHandle  h,
uint32 startTime 
)
C#
static Kvmlib.STATUS LogFileGetStartTime(Kvmlib.Handle h, out Int32 startTime);

Get the time of the first event in the log file. The time is returned in standard unix time format (number of seconds since 1970-01-01T00:00:00+00:00).

Parameters
[in]hAn open kvmHandle.
[out]startTimeThe time of the first event in the log file (UTC)
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure

◆ kvmLogFileGetType()

kvmStatus kvmLogFileGetType ( kvmHandle  h,
uint32  fileIndx,
int32 logFileType 
)
C#
static Kvmlib.STATUS LogFileGetType(Kvmlib.Handle h, Int32 fileIndx, out LogFileType logFileType);

Get type of log file.

Parameters
[in]hAn open kvmHandle.
[in]fileIndxIndex of the log file.
[out]logFileTypekvmLogFileType_xxx
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure

◆ kvmLogFileMount()

kvmStatus kvmLogFileMount ( kvmHandle  h,
uint32  fileIndx,
uint32 eventCount 
)
C#
static Kvmlib.STATUS LogFileMount(Kvmlib.Handle h, Int32 fileIndx, out Int32 eventCount);
Deprecated:
Use kvmLogFileMountEx instead.

Mount the log file with the specified index. The index starts at 0. The approximate number of events in the log file is returned.

Parameters
[in]hAn open kvmHandle.
[in]fileIndxIndex of the log file to open.
[out]eventCountThe approximate number of events in the log file
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure
Note
if return value is kvmERR_RESULT_TOO_BIG, use kvmLogFileMountEx instead.
See also
kvmLogFileDismount()

◆ kvmLogFileMountEx()

kvmStatus kvmLogFileMountEx ( kvmHandle  h,
uint32  fileIndx,
int64 eventCount 
)
C#
static Kvmlib.STATUS LogFileMountEx(Kvmlib.Handle h, Int32 fileIndx, out Int64 eventCount);

Mount the log file with the specified index. The index starts at 0. The approximate number of events in the log file is returned.

Parameters
[in]hAn open kvmHandle.
[in]fileIndxIndex of the log file to open.
[out]eventCountThe approximate number of events in the log file
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure
See also
kvmLogFileDismount()

◆ kvmLogFileReadEvent()

kvmStatus kvmLogFileReadEvent ( kvmHandle  h,
kvmLogEventEx e 
)
C#
static Kvmlib.STATUS LogFileReadEvent(Kvmlib.Handle h, out Log e);

Read an event from a log file opened with kvmLogFileMountEx(). The next call to kvmLogFileReadEvent() will read the next event.

Parameters
[in]hAn open kvmHandle.
[out]eEvent from log file.
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure