//! Returns a logger for STDOUT. Should not be present twice per `t_atapi`.
s_logger NewLogger_StdOut(
t_bool log_timestamp,
t_bool log_verbose,
t_bool log_obfuscated,
e_logformat log_format
);
//! Returns a logger for STDERR. Should not be present twice per `t_atapi`.
s_logger NewLogger_StdErr(
t_bool log_timestamp,
t_bool log_verbose,
t_bool log_obfuscated,
e_logformat log_format
);
//! Create a new logger object from the specified settings
e_exception NewLogger(s_logger *a_result,
char const* log_path,
t_bool log_silence_logs,
t_bool log_silence_errors,
t_bool log_timestamp,
t_bool log_verbose,
t_bool log_obfuscated,
t_bool log_append,
e_logformat log_format
);
These
NewLogger_*functions do not have a clear matching function to delete created logger.Solution:
Logger_New_*Logger_Deletewrapper to currentLogger_Exit