我使用gunicorn + nginx + supervisor +django。我得到了这个日志:
[2016-11-09 19:27:53 +0000] [14676] [DEBUG] GET /audit/list_pay/这是我的start gunicorn命令:
gunicorn myproject.wsgi:application --workers 4 --bind 0.0.0.0:8001 --log-level debug --log-file=-我的主管配置:
[program:cmdb]
command= /usr/local/cmdb/cmdb_gunicorn_start
directory=/usr/local/cmdb
startsecs=0
stopwaitsecs=10
autostart=false
autorestart=false
stdout_logfile=/data/logs/cmdb_gunicorn.log
redirect_stderr=true我把--access-logformat "%(h)s %(l)s %(u)s %(t)s %(s)s %(b)s"附加到gunicorn start cmd,但它不起作用。
我尝试了另一个gunicorn日志参数,但他们不工作.I不知道哪些记录器参数可以使用。
我应该怎么做才能获得更多的记录器信息。
发布于 2019-06-19 22:12:37
根据Nginx docs,您需要用另一个百分比来转义每个百分比。
https://stackoverflow.com/questions/40506120
复制相似问题