LogStorageStatus Protocol Reference

Declared in LogStorage.h

Overview

Interface for a log storage status.

Retrieves information about current status of the log storage. Used by a log upload strategy on each adding of new log record in order to check whether to send logs to the server or clean up local storage.

Reference implementation is present and use by default < MemoryLogStorage >

– getConsumedVolume required method

Retrieves current log storage size used by added records.

- (int64_t)getConsumedVolume

Return Value

Amount of bytes consumed by added records.

Discussion

Retrieves current log storage size used by added records.

Declared In

LogStorage.h

– getRecordCount required method

Retrieves current number of added records.

- (int64_t)getRecordCount

Return Value

Number of records in a local storage.

Discussion

Retrieves current number of added records.

Declared In

LogStorage.h