gnuicorn - Serbipunk/notes GitHub Wiki

set log

error log

txt_logger = logging.getLogger('gunicorn.error')

启动时添加:

--error-logfile /var/log/error_file_g.log

ref: https://stackoverflow.com/a/51723071

log config file

--log-config FILE The log config file to use. [None]