add main_ext for extended logging (#1254)

* add main_ext for extended logging
This commit is contained in:
Josh Wiles
2019-04-03 18:38:20 +02:00
committed by Fabian Franz BSc
parent a4690077fb
commit 49ef80e9f6
2 changed files with 10 additions and 0 deletions
@@ -638,6 +638,7 @@
<default>main</default>
<OptionValues>
<main>Default</main>
<main_ext>Extended</main_ext>
<anonymized>Anonymized</anonymized>
<disabled>Disabled</disabled>
</OptionValues>
@@ -780,6 +781,7 @@
<default>main</default>
<OptionValues>
<main>Default</main>
<main_ext>Extended</main_ext>
<anonymized>Anonymized</anonymized>
<disabled>Disabled</disabled>
</OptionValues>
@@ -6,6 +6,14 @@ include mime.types;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
log_format main_ext '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'"$host" sn="$server_name" '
'rt=$request_time '
'ua="$upstream_addr" us="$upstream_status" '
'ut="$upstream_response_time" ul="$upstream_response_length" '
'cs=$upstream_cache_status' ;
log_format handshake '"$http_user_agent" "$ssl_ciphers" "$ssl_curves"';
log_format anonymized ':: - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '