Clarify log format usage of header & environment (#1907)

This commit is contained in:
Ron DuPlain 2018-10-28 16:38:51 -04:00 committed by Berker Peksag
parent 9c9f1f2bb9
commit e5c11e8f8a
2 changed files with 16 additions and 6 deletions

View File

@ -181,11 +181,16 @@ T request time in seconds
D request time in microseconds
L request time in decimal seconds
p process ID
{Header}i request header
{Header}o response header
{Variable}e environment variable
{header}i request header
{header}o response header
{variable}e environment variable
=========== ===========
Use lowercase for header and environment variable names, and put
``{...}x`` names inside ``%(...)s``. For example::
%({x-forwarded-for}i)s
.. _errorlog:
errorlog

View File

@ -1241,10 +1241,15 @@ class AccessLogFormat(Setting):
D request time in microseconds
L request time in decimal seconds
p process ID
{Header}i request header
{Header}o response header
{Variable}e environment variable
{header}i request header
{header}o response header
{variable}e environment variable
=========== ===========
Use lowercase for header and environment variable names, and put
``{...}x`` names inside ``%(...)s``. For example::
%({x-forwarded-for}i)s
"""