logging - Uwsgi记录器: unable to find logger file

标签 logging uwsgi

我在uwsgi中使用nginx。
在uwsgi配置文件中,每当我使用记录器标记时,都会出现“无法找到记录器文件”错误。

这是我的配置文件中的条目:
nonok文件:/tmp/uwsgi-us.log
nonok(?!HTTP/1。\d 200)

这里有指针吗?

谢谢你。

最佳答案

您需要使用plugins = logfileplugins = python,logfile这样的行来启用“logfile”插件。

关于logging - Uwsgi记录器: unable to find logger file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29069455/

相关文章:

c# - 作为装饰者登录 vs. 依赖注入(inject)——如果我需要在类里面登录怎么办?

python - 无法更改 Python Web.py 应用程序 Linode 示例

nginx - Flask + uwsgi + nginx + 调试。 502错误而不是调试器页面

django - 我的 Django/uWSGI vassal 的堆栈跟踪记录在哪里?

python - flask 应用程序通过 Uwsgi 和 Nginx 给出 504 超时?

java - 如何在 slf4j Logger 中启用调试?

logging - 路由器 (RTR) 日志的消息格式?

postgresql - 带有 postgres 的 DOCKER 容器,警告 : could not open statistics file "pg_stat_tmp/global.stat": Operation not permitted

c - C中的自动进入退出跟踪

python - 在 Docker 中运行的 uwsgi 找不到初始化文件