K-FSW v1.2.1-59-gcaca356
KFSW: modular flight software on Zephyr, for small satellites
Loading...
Searching...
No Matches
log.h File Reference
#include <stdint.h>
#include <kfsw/services/parameter.h>

Macros

#define KFSW_LOG_PRINTF_LIKE(format_index, first_arg)
 
#define KFSW_LOG_MODULE   KFSW_LOG_MODULE_APP
 
#define kfsw_log_marker(...)   kfsw_log_write_marker(KFSW_LOG_MODULE, __VA_ARGS__)
 
#define KFSW_LOG_PARAM_TABLE_ID   25U
 
#define KFSW_LOG_PARAM_TABLE_NAME   "log"
 

Enumerations

enum  kfsw_log_module {
  KFSW_LOG_MODULE_APP = 0 , KFSW_LOG_MODULE_BOOT , KFSW_LOG_MODULE_LOG , KFSW_LOG_MODULE_PARAM ,
  KFSW_LOG_MODULE_STORAGE , KFSW_LOG_MODULE_CSP , KFSW_LOG_MODULE_UART , KFSW_LOG_MODULE_FTP ,
  KFSW_LOG_MODULE_FWU , KFSW_LOG_MODULE_HEALTH , KFSW_LOG_MODULE_COMMAND , KFSW_LOG_MODULE_EVENT ,
  KFSW_LOG_MODULE_RADIO , KFSW_LOG_MODULE_HK , KFSW_LOG_MODULE_FBO , KFSW_LOG_MODULE_CAN ,
  KFSW_LOG_MODULE_TABLE , KFSW_LOG_MODULE_REMEXEC , KFSW_LOG_MODULE_RESMON , KFSW_LOG_MODULE_GNDWDT ,
  KFSW_LOG_MODULE_SCRUB , KFSW_LOG_MODULE_LIMITS , KFSW_LOG_MODULE_COUNT
}
 

Functions

const char * kfsw_log_module_name (enum kfsw_log_module module)
 
int kfsw_log_set_module_level (enum kfsw_log_module module, uint8_t level)
 
uint8_t kfsw_log_get_module_level (enum kfsw_log_module module)
 
void kfsw_log_write (uint8_t module, uint8_t severity, const char *format,...) KFSW_LOG_PRINTF_LIKE(3
 
void void kfsw_log_write_marker (uint8_t module, const char *format,...) KFSW_LOG_PRINTF_LIKE(2
 
int kfsw_log_set_level (uint8_t level)
 
uint8_t kfsw_log_get_level (void)
 
void kfsw_log_error (const char *format,...) KFSW_LOG_PRINTF_LIKE(1
 
void void kfsw_log_warning (const char *format,...) KFSW_LOG_PRINTF_LIKE(1
 
void void void kfsw_log_info (const char *format,...) KFSW_LOG_PRINTF_LIKE(1
 
void void void void kfsw_log_debug (const char *format,...) KFSW_LOG_PRINTF_LIKE(1
 

Variables

const struct kfsw_param_definition_set kfsw_log_param_definitions
 

Description

Runtime-filtered logging API.