python log view application
I want to have GUI application or Web app where I can view the python log information. I can choose any formatter required. But it should work with standard logging module.
I have configured my logs to file.开发者_如何转开发 But I wanted to have log to be stored to mysql db (it is possible) but I badly need user interface to view the log from remote place.
Any recommended tool or approach?
You can write a database handler for logging as in this example using any Python DB-API 2.0 compliant database interface. Then, of course, you can view the logs using any framework which allows you to get and display data via the Web.
Or, you can use log4j's Chainsaw GUI using the approach outlined here. Here's a screenshot:
(source: pylonshq.com)
Just two approaches - there are no doubt numerous others.
vsConsole FileView lets you view server logs via a web application. Have a look at the demo and see if it suits your needs:
http://demo.vamonossoftware.com/
精彩评论