Hi James,
Not easily for a static HTML page. You could, however, define a new dynamic page using a Python request handler (see IndigoWebServer/indigopy/indigoreqhandler.py for the main request handlers used by Indigo). Those functions are called when that page is requested. So, for example, if you added a function like this:
- Code: Select all
def foobar(self):
self._Log("foobar page requested from " + cherrypy.request.remote_addr)
return "hello there"
foobar.exposed = True
Then every time you try to access "/foobar" on the web sever it will log to the Indigo Event Log file. You can also, via Python, have it return the contents of your static HTML file within that function.
Regards,
Matt