mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Clarify log format usage of header & environment (#1907)
This commit is contained in:
parent
9c9f1f2bb9
commit
e5c11e8f8a
@ -181,11 +181,16 @@ T request time in seconds
|
|||||||
D request time in microseconds
|
D request time in microseconds
|
||||||
L request time in decimal seconds
|
L request time in decimal seconds
|
||||||
p process ID
|
p process ID
|
||||||
{Header}i request header
|
{header}i request header
|
||||||
{Header}o response header
|
{header}o response header
|
||||||
{Variable}e environment variable
|
{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:
|
||||||
|
|
||||||
errorlog
|
errorlog
|
||||||
|
|||||||
@ -1241,10 +1241,15 @@ class AccessLogFormat(Setting):
|
|||||||
D request time in microseconds
|
D request time in microseconds
|
||||||
L request time in decimal seconds
|
L request time in decimal seconds
|
||||||
p process ID
|
p process ID
|
||||||
{Header}i request header
|
{header}i request header
|
||||||
{Header}o response header
|
{header}o response header
|
||||||
{Variable}e environment variable
|
{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
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user