Apache日志中的烧瓶日志级别显示

时间:2019-04-18 14:58:20

标签: python apache logging flask mod-wsgi

mod_wsgi托管的Flask应用中,

app.logger.info('Starting...')

在Apache日志中呈现为

[Thu Apr 18 14:48:59.845824 2019] [wsgi:error] [pid 15:tid 139770524575488] [remote 172.17.0.1:42094] [2019-04-18 14:48:59,845] INFO in server: Starting...

有没有一种方法可以避免警告“ wsgi:error”,而改为显示“ wsgi:info”?

理想情况下,我想看看

[Thu Apr 18 14:48:59.845824 2019] [wsgi:info] [pid 15:tid 139770524575488] [remote 172.17.0.1:42094] Starting...

0 个答案:

没有答案