{{define "app_logs"}}{{template "top" .}} {{if .Flash}}{{end}} {{if .FlashErr}}{{end}} {{template "appnav" .}} {{template "lognav" .}}

Logs

{{if .LogsErr}}{{end}}
{{if .LogLegacyGrep}}{{end}}
{{if .LogTruncated}}

Showing the newest {{len .LogRows}} lines of this window — narrow the window, or use carlos logs for more.

{{end}}
{{- range logLines .LogRows -}}
{{.Time}} {{.Stream}}{{if .Host}} {{.Host}}{{end}} {{.Msg}}{{if .Fields}}{{.Fields}}{{end}}
{{- end -}} {{if and (not .LogRows) (not .LogsErr)}}
No log lines in this window. {{.LogCopy.Widen}}
{{end}}

{{if .LogRows}}

Times are UTC. Follow live with carlos logs --app {{.AppName}} -f.

{{else if not .LogsErr}}

An app's output appears here shortly after it runs; platform events (wakes, restarts, failures) appear even when the app itself printed nothing. A site served from files alone has no app output.

{{end}} {{template "bottom" .}}{{end}}