52 const std::string &color,
54 const std::string &module_name,
55 const std::string &content) {
63 {.color = color, .level_name = name, .module_name = module_name, .content = content});
75 const std::string &color,
77 const std::string &module_name,
78 const std::string &content) {
87 {.color = color, .level_name = name, .module_name = module_name, .content = content});
Namespace containing logs utils.
void change_formaters(reformat_func_ptr full, reformat_func_ptr simple)
Changes the log formatter functions.
reformat_func_ptr _reformat_all
Pointer to the full formatter function.
std::string reformat_all(const std::string &color, const char *name, const std::string &module_name, const std::string &content)
Format a log message with all the information.
std::string(*)(const ReformatArgs &args) reformat_func_ptr
A pointer to a log formatter function.
reformat_func_ptr _reformat_simple
Pointer to the simple formatter function.
std::string reformat_simple(const std::string &color, const char *name, const std::string &module_name, const std::string &content)
Format a log message with the minimum information.
const std::string reset()
Get the reset terminal escape char.