From a74320bf4cf97efb1c1a8a0f88d7de8e6bffe1e8 Mon Sep 17 00:00:00 2001 From: magikstm Date: Sun, 17 Dec 2017 04:13:41 -0500 Subject: [PATCH] Add {user} placeholder to CommonLogFormat (#1953) --- caddyhttp/log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddyhttp/log/log.go b/caddyhttp/log/log.go index c6299d45..1a692b0d 100644 --- a/caddyhttp/log/log.go +++ b/caddyhttp/log/log.go @@ -91,7 +91,7 @@ const ( // DefaultLogFilename is the default log filename. DefaultLogFilename = "access.log" // CommonLogFormat is the common log format. - CommonLogFormat = `{remote} ` + CommonLogEmptyValue + " " + CommonLogEmptyValue + ` [{when}] "{method} {uri} {proto}" {status} {size}` + CommonLogFormat = `{remote} ` + CommonLogEmptyValue + ` {user} [{when}] "{method} {uri} {proto}" {status} {size}` // CommonLogEmptyValue is the common empty log value. CommonLogEmptyValue = "-" // CombinedLogFormat is the combined log format.