Merge pull request #156 from pusher/fix-templates

Fix templating escaping for logging templates in docs
This commit is contained in:
Joel Speed 2019-05-10 15:27:02 +01:00 committed by GitHub
commit a1130e41a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,7 @@ If you require a different format than that, you can configure it with the `-aut
The default format is configured as follows: The default format is configured as follows:
``` ```
{{.Client}} - {{.Username}} [{{.Timestamp}}] [{{.Status}}] {{.Message}} {% raw %}{{.Client}} - {{.Username}} [{{.Timestamp}}] [{{.Status}}] {{.Message}}{% endraw %}
``` ```
Available variables for auth logging: Available variables for auth logging:
@ -177,7 +177,7 @@ If you require a different format than that, you can configure it with the `-req
The default format is configured as follows: The default format is configured as follows:
``` ```
{{.Client}} - {{.Username}} [{{.Timestamp}}] {{.Host}} {{.RequestMethod}} {{.Upstream}} {{.RequestURI}} {{.Protocol}} {{.UserAgent}} {{.StatusCode}} {{.ResponseSize}} {{.RequestDuration}} {% raw %}{{.Client}} - {{.Username}} [{{.Timestamp}}] {{.Host}} {{.RequestMethod}} {{.Upstream}} {{.RequestURI}} {{.Protocol}} {{.UserAgent}} {{.StatusCode}} {{.ResponseSize}} {{.RequestDuration}}{% endraw %}
``` ```
Available variables for request logging: Available variables for request logging:
@ -207,7 +207,7 @@ All other logging that is not covered by the above two types of logging will be
If you require a different format than that, you can configure it with the `-standard-logging-format` flag. The default format is configured as follows: If you require a different format than that, you can configure it with the `-standard-logging-format` flag. The default format is configured as follows:
``` ```
[{{.Timestamp}}] [{{.File}}] {{.Message}} {% raw %}[{{.Timestamp}}] [{{.File}}] {{.Message}}{% endraw %}
``` ```
Available variables for standard logging: Available variables for standard logging: