mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Use ISO8601 for log files
This commit is contained in:
parent
534ed34d73
commit
4220a1832d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user