Is there any way I can see errors and exceptions while running my app? I have a working app now, but I think that it would be good to capture exceptions if there are any differences between development and deployment. asked 10 Jan '12, 20:08 lucidguppy |
Track-backs and anything else printed to sys.stderr are logged in the Apache log. You can tail the log in real-time with the tail command,
answered 10 Jan '12, 20:34 johns P.S. If the application is not using Apache than look in the server's logs, which are normally defined in the server config file. Each python framework also has admin options for track-backs and you should check the framework's official documentation.
(10 Jan '12, 20:37)
johns
|
Maybe have a look at the python package logbook, which is able to notify you by e-mail, or twitter, about events happening. http://packages.python.org/Logbook/ answered 11 Jan '12, 02:42 rogererens |