Logging with mod_wsgi and pyamf

View: New views
2 Messages — Rating Filter:   Alert me  

Logging with mod_wsgi and pyamf

by ozgur batur :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am not able to log events in tutorial PyAMF application using
WSGIGateway. I followed instructions of tutorial
http://pyamf.org/wiki/ModWSGIHowto. Then I tried to log with following
statement in a service method:

print >> environ['wsgi.errors'], "application debug #1"

as described in
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques. Then I get
the following errors :

[8] "  File "/var/www/devel/testapp/startup.py", line 18, in __init__
print >> environ['wsgi.errors'], "application debug #1"

[9] "NameError: global name 'environ' is not defined

--
H Özgür Batur
_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users

Re: Logging with mod_wsgi and pyamf

by lists-144 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi ozgur,

I opened a ticket for logging instructions a while ago [1], I can't  
help you with it at the moment since I haven't used it myself but you  
can cc yourself on that ticket if you're interested.

[1] http://pyamf.org/ticket/623

Cheers,

Thijs

On 13 Aug 2009, at 15:44, ozgur batur wrote:

> Hi,
>
> I am not able to log events in tutorial PyAMF application using
> WSGIGateway. I followed instructions of tutorial
> http://pyamf.org/wiki/ModWSGIHowto. Then I tried to log with following
> statement in a service method:
>
> print >> environ['wsgi.errors'], "application debug #1"
>
> as described in
> http://code.google.com/p/modwsgi/wiki/DebuggingTechniques. Then I get
> the following errors :
>
> [8] "  File "/var/www/devel/testapp/startup.py", line 18, in __init__
> print >> environ['wsgi.errors'], "application debug #1"
>
> [9] "NameError: global name 'environ' is not defined
>
> --
> H Özgür Batur
> _______________________________________________
> PyAMF users mailing list - users@...
> http://lists.pyamf.org/mailman/listinfo/users


_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users

PGP.sig (201 bytes) Download Attachment