Skip to content

Default logformat is missing some parameters #497

@madmaze

Description

@madmaze

Ref: https://github.com/unbit/uwsgi-docs/blob/master/LogFormat.rst#uwsgi-default-logging

log-format = [pid: %(pid)|app: -|req: -/-] %(addr) (%(user)) {%(vars) vars in %(pktsize) bytes} [%(ctime)] %(method) %(uri) => generated %(rsize) bytes in %(msecs) msecs (%(proto) %(status)) %(headers) headers in %(hsize) bytes (%(switches) switches on core %(core))

The app/req parameter variables are not filled in [pid: %(pid)|app: -|req: -/-]

Are these parameters not supported when providing a custom log format?

It looks like internally we use a different formatting method, which does not use the variable/functions referenced in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions