Apart from python documentation, please check the web2py docs :) 

http://web2py.com/books/default/chapter/29/04/the-core?search=logger

logging is managed by the web2py app so there is a config file to set up in 
web2py. 
It's a good thing to have in the tool kit. 



On Monday, 27 January 2014 05:30:19 UTC+11, horridohobbyist wrote:
>
> I'm looking for a simple way to print out statements in Python. I 
> understand the 'print' function outputs to the console on the server side, 
> but once web2py is deployed through Apache, I don't there's a "console" 
> anymore.
>
> I tried looking at Python logging. The simplest case from the Python 
> documentation suggests the following *should* work:
>
> import logging
> logging.basicConfig(filename=URL('static','debug.log'),level=logging.DEBUG)
>
> logging.debug('this is a test')
>
>
> But when I examine debug.log, it's empty. (Without the filename 
> configuration, I have NO IDEA where the logging outputs to.)
>
> Is there no way to obtain a simple outputting mechanism in web2py?
>
> Thanks.
>

-- 
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/groups/opt_out.

Reply via email to