Gee, that's a clever idea! Thanks.

On Monday, 27 January 2014 16:09:20 UTC-5, Rowdy wrote:
>
> On 27/01/2014 05:30, 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. 
>
> Another option is to write log messages to a table in the database. 
> I've used that method in one situation where the client won't allow me 
> access to the production filesystem, but I do have read-only access to 
> the database.  I can query the logging table without having to ask their 
> IT department to send me a copy of the log file. 
>
> Rowdy 
>
>
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to