moved logger-test's directory to WRITE_DIR flag
This commit is contained in:
parent
2c379872d9
commit
28a38e5290
@ -8,6 +8,7 @@ const enum RETURN_CODES //exit codes you fucking idiot (2#)
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define WRITE_MESSAGE "Hello from logger-test! 👋"
|
#define WRITE_MESSAGE "Hello from logger-test! 👋"
|
||||||
|
#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 "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_FORMATTING "%s/%04d-%02d-%02d_%03x" //SAME THING AS LOG_FORMAT, BUT USED IN sprintf IN logger.c, NOT AS LENGTH
|
#define LOG_FORMATTING "%s/%04d-%02d-%02d_%03x" //SAME THING AS LOG_FORMAT, BUT USED IN sprintf IN logger.c, NOT AS LENGTH
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int test = initLogger("./logs");
|
int test = initLogger(WRITE_DIR);
|
||||||
|
|
||||||
printf("%d\n", test);
|
printf("%d\n", test);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user