Dion Hewson wrote:
do you think it would be possible to tail -f the production log and update an html element using rjs
so that the web page is updated every time the production log is updated?
All you need is periodically_call_remote. Get googling!
basically I want to see my logs on an admin web page so I don't have to ssh into my server
I would only abuse Ajax for a paying customer. For myself, I would simply either nab one of several log-reading websites which I suspect are out there, or would dump the log into a <pre> tag and then hit refresh frequently - or automate the refresh with a META tag.
Is there some reason you need to watch your logs so often?