{{define "node_logs"}} {{if .Follow}}{{end}} llmgw — {{.Node}} logs

{{.Node}}

{{if eq .Source "agent"}}the agent's log{{else}}output of engine {{.Source}}{{end}} · last {{.Count}} lines

{{if .OnAdminListener}}{{else}}{{template "nav" .Nav}}{{end}}

{{- $d := . -}} {{range .Sources}}{{.}}{{else}}>{{.}}{{end}}   {{end}}

{{range .Counts}}{{.}} {{end}}lines · {{if .Follow}}stop following{{else}}follow (refresh every 5s){{end}}

{{if .Error}}

{{.Error}}

{{end}} {{if .Lines}}
{{range .Lines}}{{.}}
{{end}}
{{/* Newest at the bottom, like a terminal, and scrolled there: the line worth reading is almost always the last one. */}} {{else if not .Error}}

Nothing logged yet.

{{end}}
{{end}}