Show timestamps in the web UI log console (#1137)

Add a LogEntry type for log entries sent over links and returned by
log queries. It names the fields every entry has (level, message,
timestamp) and leaves the rest as unknown.

The console now prefixes each line with the entry's time in the
browser's local time zone, which makes it possible to tell when an
error happened after the fact.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
BastiaanandClaude Opus 5.5 authored and GitHub committed 2026-10-25 19:57:16 +00:00
1 parent ba518faa05
commit b474573633
5 files changed
+47 -16

No files matched your search

+4
View File
@@ -195,6 +195,10 @@ body {
white-space: pre-wrap;
}
.instance-console .log-time {
color: #808080;
}
.instance-console .factorio-time {
color: #afaf1f;
}