43#include "siapcommon.h"
71#define SIAP_LOGGING_MESSAGE_MAX 256U
79static const char SIAP_LOGGER_PATH[] =
"SIAP";
87static const char SIAP_LOGGER_FILE[] =
"siap.log";
95static const char SIAP_LOGGER_HEAD[] =
"SIAP Version 1.1a";
bool siap_logger_test(void)
Run a manual test of the SIAP logger functions.
bool siap_logger_write(const char *message)
Write a message to the SIAP log file.
Definition logger.c:154
void siap_logger_read(char *output, size_t otplen)
Read the SIAP log file into a provided buffer.
Definition logger.c:107
size_t siap_logger_size(void)
Get the current size of the SIAP log file.
Definition logger.c:140
void siap_logger_print(void)
Print the contents of the SIAP log file.
Definition logger.c:82
void siap_logger_initialize(const char *path)
Initialize the SIAP logger.
Definition logger.c:36
bool siap_logger_exists(void)
Check if the SIAP log file exists.
Definition logger.c:68
void siap_logger_reset(void)
Reset the SIAP log.
Definition logger.c:119