formatting

This commit is contained in:
jacob 2025-11-02 19:40:24 -06:00
parent 9fc7445e6b
commit ef18cff56d

View File

@ -45,13 +45,11 @@ void W32_Log(i32 level, String msg)
}
__profmsg((char *)msg.text, msg.len, settings.color);
/* FIXME: Log actual thread & fiber id */
DateTime datetime = LocalDateTime();
i64 now_ns = TimeNs();
i32 thread_id = GetCurrentThreadId();
i32 fiber_id = FiberId();
//- Log message to file
/* TODO: Log asynchronously */
{
@ -70,7 +68,7 @@ void W32_Log(i32 level, String msg)
FmtUintZ(thread_id, 5),
/* Fiber id */
FmtUintZ(fiber_id, 5),
FmtUintZ(fiber_id, 4),
/* Level */
FmtString(shorthand),
@ -78,7 +76,6 @@ void W32_Log(i32 level, String msg)
/* Message */
FmtString(msg)
);
WriteFile(g->logfile, msg_formatted.text, msg_formatted.len, 0, 0);
}