2023-07-11 09:51:09 +00:00
|
|
|
#include "pico/stdlib.h"
|
|
|
|
|
|
|
|
#define LOG_MAX_MESSAGE_SIZE 64
|
|
|
|
|
|
|
|
#define LOG_ERROR_MEMORY_FULL 1
|
|
|
|
|
|
|
|
enum Log_level{
|
|
|
|
TELEPLOT, TRACE, DEBUG, INFO, WARN, ERROR, FATAL
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Log_message_data{
|
|
|
|
char message[LOG_MAX_MESSAGE_SIZE];
|
|
|
|
enum Log_level log_level;
|
|
|
|
uint32_t timestamp;
|
|
|
|
};
|
|
|
|
|
|
|
|
void Log_init(void);
|
|
|
|
void Log_gestion(void);
|
2023-07-11 11:41:24 +00:00
|
|
|
void Log_message(char * message, enum Log_level log_level);
|
|
|
|
void Log_get_full_log();
|