36 #define NUMBERMAX 9999
37 #define NUMBERFMF "%s\\%s%.04d.LOG"
73 #if SDLOG_ALL_BUFFERS_SIZE == 0 || SDLOG_MAX_MESSAGE_LEN == 0 || \
74 SDLOG_QUEUE_BUCKETS == 0
75 #undef SDLOG_NEED_QUEUE
77 #define SDLOG_NEED_QUEUE
81 #ifdef SDLOG_NEED_QUEUE
82 typedef struct LogMessage LogMessage;
130 char *nextFileName,
const size_t nameLength,
const int indexOffset);
147 const size_t sizeConsideredEmpty);
158 #ifdef SDLOG_NEED_QUEUE
170 SdioError sdLogOpenLog(FileDes *fileObject,
const char *directoryName,
const char *fileName,
171 bool appendTagAtClose);
179 SdioError sdLogFlushLog(
const FileDes fileObject);
187 SdioError sdLogCloseLog(
const FileDes fileObject);
206 SdioError sdLogWriteLog(
const FileDes fileObject,
const char *fmt, ...);
216 SdioError sdLogWriteRaw(
const FileDes fileObject,
const uint8_t *buffer,
const size_t len);
SdioError sdLogFinish(void)
unmount filesystem
static struct EcefCoor_d offset
SdioError getFileName(const char *prefix, const char *directoryName, char *nextFileName, const size_t nameLength, const int indexOffset)
get last used name for a pattern, then add offset and return valid filename
SdioError removeEmptyLogs(const char *directoryName, const char *prefix, const size_t sizeConsideredEmpty)
remove spurious log file left on sd
struct _SdLogBuffer SdLogBuffer
SdioError sdLogInit(uint32_t *freeSpaceInKo)
initialise sdLog