Open yanis-fourel opened 2 years ago
The NewLogger functions are found in the AvesTerra source folder. I would actually have the following behavior:
Logger_New: construct a logger struct and open its fd
Logger_Init: open an fd for a giver logger struct
Logger_Duplicate: duplicate a logger struct, with the same fd
Logger_Delete: release fd, free memory
Logger_Exit: release fd, do not free memory (path)
Logger_Delete_Memory: do not release fd, but free memory (useful when duplicating)
These
NewLogger_*
functions do not have a clear matching function to delete created logger. Solution:Logger_New_*
Logger_Delete
wrapper to currentLogger_Exit