A ghetto way: just open a file and use regular write commands On Jan 26, 2014 1:30 PM, "horridohobbyist" <horrido.hobb...@gmail.com> 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 web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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.