Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions bin/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ log-route = uwsgilogger ^((?!\{).)*$

; leave already JSON formatted django logs as is
log-encoder = format:djangologger ${msg}
; Encode uWSGI server logs as JSON
log-encoder = json:uwsgilogger {"source": "uwsgi", "type": "server", "timestamp": "${strftime:%%Y-%%m-%%dT%%H:%%M:%%S%%z}", "event": "${msg}", "level": "info"}
; Encode uWSGI server logs as JSON - deliberately using msg instead of event due to
; high cardinality of this key/label.
log-encoder = json:uwsgilogger {"source": "uwsgi", "type": "server", "timestamp": "${strftime:%%Y-%%m-%%dT%%H:%%M:%%S%%z}", "msg": "${msg}", "level": "info"}

; these are uwsgi's own request logs (not to be confused with the request logs emitted
; by the application!)
Expand Down
Loading