在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...