On Apr 18, 2012, at 11:55 PM, castanets wrote:
>
> I deployed a web2py app on gae.
> for logging,
> *.copied "logging.example.conf" and renamed it to "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')
>
> but, I can't find this logging message in gae admin console.
> is there something that I missed??
GAE has its own rules for logging, and IIRC doesn't pay attention to the
logging configuration. I don't recall the details, but I haven't been bothering
to create a logging.conf when using GAE. Make sure you're looking in the right
place and at the right version of your app in the GAE dashboard.