client-c  0.7.0
kaa_logging.h File Reference

Kaa data logging subsystem API. More...

+ Include dependency graph for kaa_logging.h:

Go to the source code of this file.

Macros

#define KAA_LOG_COLLECTOR_T
 

Typedefs

typedef struct kaa_log_collector kaa_log_collector_t
 

Functions

kaa_error_t kaa_logging_init (kaa_log_collector_t *self, void *log_storage_context, void *log_upload_strategy_context)
 Initializes data collection module with the storage interface, upload strategy, and other settings. More...
 
kaa_error_t kaa_logging_add_record (kaa_log_collector_t *self, kaa_user_log_record_t *entry)
 Serializes and adds a log record to the log storage. More...
 

Detailed Description

Kaa data logging subsystem API.

Supplies API for Kaa data collection / logging subsystem.

Definition in file kaa_logging.h.

Macro Definition Documentation

#define KAA_LOG_COLLECTOR_T

Private log collector structure.

Definition at line 43 of file kaa_logging.h.

Typedef Documentation

typedef struct kaa_log_collector kaa_log_collector_t

Definition at line 44 of file kaa_logging.h.

Function Documentation

kaa_error_t kaa_logging_add_record ( kaa_log_collector_t self,
kaa_user_log_record_t entry 
)

Serializes and adds a log record to the log storage.

Parameters
[in]selfPointer to a kaa_log_collector_t instance.
[in]entryPointer to log entry to be added to the storage.
Returns
Error code.
kaa_error_t kaa_logging_init ( kaa_log_collector_t self,
void *  log_storage_context,
void *  log_upload_strategy_context 
)

Initializes data collection module with the storage interface, upload strategy, and other settings.

Parameters
[in]selfPointer to a kaa_log_collector_t instance.
[in]log_storage_contextLog storage context.
[in]log_upload_strategy_contextLog upload strategy context.
Returns
Error code.