I tryed to set up a logger in my app following the manual but I cannot
see any file created under the logs directory.
Here they are modifications I made to files... can you see anything wrong?
* logging.conf (located under web2py/applications/myapp/)
[loggers]
- keys=root,rocket,markdown,web2py,rewrite,cron,app,welcome
+ keys=root,rocket,markdown,web2py,rewrite,cron,app,welcome,teleservice
[...]
+ # teleservice app handler
+ [logger_teleservice]
+ level=WARNING
+ qualname=web2py.app.teleservice
+ handlers=rotatingFileHandler
+ propagate=0
* db.py (at the beginning)
+ import logging
+ logger = logging.getLogger("web2py.app.teleservice")
+ if DEVELOPMENT:
+ logger.setLevel(logging.DEBUG)
+ else:
+ logger.setLevel(logging.WARNING)
Thank you very mutch
Cheers
Manuele
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.