我在 gae 上部署了一个 web2py 应用程序。对于日志记录,*. 复制“logging.example.conf”并将其重命名为“logging.conf”
*.added myapp to [loggers]
[loggers]
keys=root,rocket,markdown,web2py,rewrite,app,welcome,myapp
*.added [logger_myapp]
[logger_myapp]
level=WARNING
qualname=web2py.app.myapp
handlers=consoleHandler
propagate=0
*.imported logging in controller(default.py)
import logging
logger = logging.getLogger("web2py.app.myapp")
logger.setLevel(logging.WARNING)
*.logged in index():
logger.warn('logging test')
但是,我在 gae 管理控制台中找不到此日志消息。有什么我错过的吗?