11

I am using nginx with uwsgi. in the uwsgi configuration file, whenever I use logger tag I get "unable to find logger file" error.

Here is the entry from my configuration file: nonok file:/tmp/uwsgi-us.log nonok (?!HTTP/1.\d 200)

Any pointer here?

Thank you.

1 Answer 1

25

You need to enable the "logfile" plugin with a line like plugins = logfile or plugins = python,logfile.

2
  • 3
    It is not obvious to beginners like me that the plugins have to be enabled like this. Also, in this python3 world, the plugin is named "python3" because the error message helped: UNABLE to load uWSGI plugin: /usr/lib/uwsgi/plugins/python_plugin.so
    – bgStack15
    Dec 31, 2020 at 2:55
  • The uWSGI documentation on this point is horrendous to the point of idiotic. Why would you leave something critical like this out? Dec 22, 2021 at 21:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.