Logging module.
More...
#include <stdint.h>
#include <stdio.h>
#include <csp/csp_types.h>
#include "kubos-core/k_log.h"
Go to the source code of this file.
|
#define | KLOG_MAX_LINE 255 |
|
#define | KLOG(level, logger, ...) klog_write(level, logger, __VA_ARGS__) |
|
#define | KLOG_ERR(logger, ...) KLOG(LOG_ERROR, logger, __VA_ARGS__) |
|
#define | KLOG_WARN(logger, ...) KLOG(LOG_WARNING, logger, __VA_ARGS__) |
|
#define | KLOG_INFO(logger, ...) KLOG(LOG_INFO, logger, __VA_ARGS__) |
|
#define | KLOG_DEBUG(logger, ...) KLOG(LOG_DEBUG, logger, __VA_ARGS__) |
|
#define | KLOG_SUFFIX_LEN 4 |
|
#define | KLOG_PATH_LEN 255 |
|
#define | KLOG_MAX_PATH (KLOG_PATH_LEN - KLOG_SUFFIX_LEN - 1) |
|
#define | KLOG_PART_SIZE_DEFAULT (1024 * 512) |
|
#define | KLOG_MAX_PARTS_DEFAULT 4 |
|
#define | klog_write(level, logger, ...) |
|
|
int | klog_init_file (char *file_path, uint8_t file_path_len, uint32_t part_size, uint8_t max_parts) |
|
void | klog_console (unsigned level, const char *logger, const char *format,...) |
|
void | klog_file (unsigned level, const char *logger, const char *format,...) |
|
void | klog_cleanup (void) |
|