43#include "dktpcommon.h"
71#define DKTP_LOGGING_MESSAGE_MAX 256U
79static const char DKTP_LOGGER_PATH[] =
"DKTP";
87static const char DKTP_LOGGER_FILE[] =
"dktp.log";
95static const char DKTP_LOGGER_HEAD[] =
"DKTP Version 1.1a";
size_t dktp_logger_size(void)
Get the current size of the DKTP log file.
Definition logger.c:140
void dktp_logger_reset(void)
Reset the DKTP log.
Definition logger.c:119
bool dktp_logger_exists(void)
Check if the DKTP log file exists.
Definition logger.c:68
void dktp_logger_read(char *output, size_t otplen)
Read the DKTP log file into a provided buffer.
Definition logger.c:107
bool dktp_logger_test(void)
Run a manual test of the DKTP logger functions.
void dktp_logger_print(void)
Print the contents of the DKTP log file.
Definition logger.c:82
bool dktp_logger_write(const char *message)
Write a message to the DKTP log file.
Definition logger.c:154
void dktp_logger_initialize(const char *path)
Initialize the DKTP logger.
Definition logger.c:36