I tried this simple way to log (to help debugging, not really for 
production logging):

import logging
logging.basicConfig(filename="/tmp/web2py.log", level=logging.INFO)
logging.info("this is not output")

The above does not work.  I know that there is a solution that works 
at http://www.web2pyslices.com/slice/show/1416/logging , but my question 
is, why does the simpler method not work? 

I also tried to put the first two lines (the  import, and the 
logging.basicConfig) in db.py, but it does not seem to work. 
Any insight would be appreciated.

-- 



Reply via email to