implemented LOG_FORMATTING in logger
This commit is contained in:
parent
be343bd1bb
commit
614d788350
@ -42,7 +42,7 @@ int initLogger(char *directoryPath)
|
||||
|
||||
if (buffer > MAX_USAGE) return INVALID_FILE;
|
||||
|
||||
sprintf(filePath, "%s/%04d-%02d-%02d_%03x", directoryPath, tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, buffer);
|
||||
sprintf(filePath, LOG_FORMATTING, directoryPath, tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, buffer);
|
||||
|
||||
returning = open(filePath, O_WRONLY | O_APPEND | O_CREAT, 0644);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user