1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Use ISO8601 for log files

This commit is contained in:
Michael Vetter 2022-04-29 13:05:02 +02:00
parent 534ed34d73
commit 4220a1832d

View File

@ -196,7 +196,7 @@ log_msg(log_level_t level, const char* const area, const char* const msg)
char* level_str = _log_string_from_level(level); char* level_str = _log_string_from_level(level);
gchar* date_fmt = g_date_time_format(dt, "%d/%m/%Y %H:%M:%S"); gchar* date_fmt = g_date_time_format_iso8601(dt);
fprintf(logp, "%s: %s: %s: %s\n", date_fmt, area, level_str, msg); fprintf(logp, "%s: %s: %s: %s\n", date_fmt, area, level_str, msg);
g_date_time_unref(dt); g_date_time_unref(dt);