From c8d40af3e21a28383599f0f834e54ba588897b54 Mon Sep 17 00:00:00 2001 From: Gusted Date: Thu, 2 Nov 2023 22:31:45 +0100 Subject: [PATCH] Use handlebars syntax highlight for Go templates - [Shiki](https://github.com/shikijs/shiki) doesn't support highlighting Go templates, so instead use handlebars template highlighting for this code snippet. --- docs/admin/logging-documentation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/admin/logging-documentation.md b/docs/admin/logging-documentation.md index 1ff790cf..5b7be08f 100644 --- a/docs/admin/logging-documentation.md +++ b/docs/admin/logging-documentation.md @@ -220,7 +220,7 @@ Please note, the access logger will log at `INFO` level, setting the This value represents a go template. Its default value is -```tmpl +```handlebars {{.Ctx.RemoteHost}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.URL.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}" "{{.Ctx.Req.UserAgent}}"` ```