Skip to content

Instantly share code, notes, and snippets.

@madchap
Created October 26, 2020 13:37
Show Gist options
  • Save madchap/304845ae220ca0125ea8936b84c1cff7 to your computer and use it in GitHub Desktop.
Save madchap/304845ae220ca0125ea8936b84c1cff7 to your computer and use it in GitHub Desktop.
[uwsgi]
socket = 0.0.0.0:3031
protocol = uwsgi
module = dojo.wsgi:application
py-autoreload = 1
lazy-apps
honour-stdin
threaded-logger
buffer-size = 4096
; log-encoder = json {"unix":${unix}, "msg":"${msgln}", "date":"${strftime:%%d/%%m/%%Y %%H:%%M:%%S}"}
; logformat = %(status) [%(msecs)ms] %(method) %(uri)
log-encoder = json {"timestamp": "${strftime:%FT%TZ}", "source": "stdout-stderr", message": "${msg}"}
log-req-encoder = json {"timestamp":${strftime:%%d-%%m-%%Y %%H:%%M:%%S}, "source": "request", "message":"${msgln}"}
logger-req = stdio
logger = stdio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment