From 80f8fc6967d2c59318f5f0af1bd040f4f60d667f Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 23 Nov 2022 19:48:59 +0100 Subject: [PATCH] created LOG_FORMATTING_START and LOG_FORMAT_START flags --- include/logger/flags.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/logger/flags.h b/include/logger/flags.h index 0e81e2d..429641e 100644 --- a/include/logger/flags.h +++ b/include/logger/flags.h @@ -11,7 +11,10 @@ const enum RETURN_CODES //exit codes you fucking idiot (2#) #define WRITE_DIR "./logs" #define LOG_FORMAT "yyyy-mm-dd_xxx.log" //THE LAST xxx IS FOR BASE-16 NUMBER OF USAGE THAT DAY (SO MAX IS 4095 [FFF] USAGES PER DAY) +#define LOG_FORMAT_START "yyyy-mm-dd" //FIRST PART OF LOG_FORMAT + #define LOG_FORMATTING "%s/%04d-%02d-%02d_%03x.log" //SAME THING AS LOG_FORMAT, BUT USED IN sprintf IN logger.c, NOT AS LENGTH +#define LOG_FORMATTING_START "%04d-%02d-%02d" //FIRST PART OF LOG_FORMATTING #define WRITE_FORMAT "[hh:mm:ss] " //LOG MESSAGE'S PREFIX (THE SPACE AT THE END IS INTENTIONAL) #define WRITE_FORMATTING "[%02d:%02d:%02d]: %s" //guess what