I would provide a pull path to the filename parameter. The current
directory is not usually what you think in WSGI environments.
On Oct 19, 2015 11:49 PM, "Senthil R" <[email protected]> wrote:

> I am on a shared hosting environment ( dreamhost ).
>
> dreamhost uses passenger as the WSGI server.
>
> Using the following lines to log results does not work ( I've tried to log
> from passenger_wsgi.py and a 'controller' class)
>
> import logging
>
> logging.basicConfig(filename='log.txt', level=logging.DEBUG)
> logging.debug('Testing logging...')
>
>
> does anyone know how to log from web.py in a shared hosting environment ?
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/webpy.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to