From 6baa110adbf4150e60809e64f43d9a2006f5379a Mon Sep 17 00:00:00 2001 From: bluepuma77 Date: Mon, 18 Nov 2024 11:58:04 +0100 Subject: [PATCH] Update access-logs.md, add examples for accesslog.format --- docs/content/observability/access-logs.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/content/observability/access-logs.md b/docs/content/observability/access-logs.md index 2a0c83398..52e781319 100644 --- a/docs/content/observability/access-logs.md +++ b/docs/content/observability/access-logs.md @@ -59,6 +59,20 @@ If the given format is unsupported, the default (CLF) is used instead. - [] " " "" "" "" "" ms ``` +```yaml tab="File (YAML)" +accessLog: + format: "json" +``` + +```toml tab="File (TOML)" +[accessLog] + format = "json" +``` + +```bash tab="CLI" +--accesslog.format=json +``` + ### `bufferingSize` To write the logs in an asynchronous fashion, specify a `bufferingSize` option.