Skip to content

Add Logger_Exit to match current NewLogger_* functions #31

Description

@yanis-fourel

These NewLogger_* functions do not have a clear matching function to delete created logger.
Solution:

  • (opt) Rename these functions Logger_New_*
  • Add Logger_Delete wrapper to current Logger_Exit
//! 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
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions