diff --git a/gunicorn.conf.py b/gunicorn.conf.py index 1dcc784778b5a54a47c3d8650fbdcc4859f7ef8a..0228b7856c19312450f22e8fdea42e06f4aa7977 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -11,6 +11,10 @@ worker_class = 'sync' # logging accesslog = '-' +access_log_format = '{"remote_address":"%(h)s",' \ + '"response_code":"%(s)s","request_method":"%(m)s",' \ + '"request_path":"%(U)s","request_querystring":"%(q)s",' \ + '"request_timetaken":"%(D)s","response_length":"%(B)s"}' errorlog = '-' loglevel = 'warning' disable_redirect_access_to_syslog = True