76#define QSTP_LOGGING_MESSAGE_MAX 256
84static const char QSTP_LOGGER_PATH[] =
"QSTP";
92static const char QSTP_LOGGER_FILE[] =
"qstp.log";
101static const char QSTP_LOGGER_HEAD[] =
"QSTP Version 1.1a";
QSTP common includes and definitions.
void qstp_logger_read(char *output, size_t otplen)
Read the log file into a buffer.
Definition logger.c:100
bool qstp_logger_test(void)
Run a manual test of the logger functions.
Definition logger.c:173
void qstp_logger_print(void)
Print the log file.
Definition logger.c:75
bool qstp_logger_write(const char *message)
Write a message to the log file.
Definition logger.c:147
void qstp_logger_reset(void)
Reset the logger.
Definition logger.c:112
void qstp_logger_initialize(const char *path)
Initialize the logger.
Definition logger.c:33
bool qstp_logger_exists(void)
Test if the log file exists.
Definition logger.c:61
size_t qstp_logger_size(void)
Get the size of the log file.
Definition logger.c:133