If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!
After that I have added
from gluon import current current.logger = logger
This way I can use the same logger from modules too by writing
current.logger.debug('my debug message from module')
Logging best practices in web2py
0
geo-petrini-10498 11 years ago
After that I have added
This way I can use the same logger from modules too by writing