client-c
0.7.0
|
Kaa data logging subsystem API. More...
#include "gen/kaa_logging_definitions.h"
#include "platform/ext_log_storage.h"
#include "platform/ext_log_upload_strategy.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... | |
Kaa data logging subsystem API.
Supplies API for Kaa data collection / logging subsystem.
Definition in file kaa_logging.h.
#define KAA_LOG_COLLECTOR_T |
Private log collector structure.
Definition at line 43 of file kaa_logging.h.
typedef struct kaa_log_collector kaa_log_collector_t |
Definition at line 44 of file kaa_logging.h.
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.
[in] | self | Pointer to a kaa_log_collector_t instance. |
[in] | entry | Pointer to log entry to be added to the storage. |
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.
[in] | self | Pointer to a kaa_log_collector_t instance. |
[in] | log_storage_context | Log storage context. |
[in] | log_upload_strategy_context | Log upload strategy context. |