This is not such a good idea. If the log gets large you will be transferring it every 5 seconds. This is why I was discussing javascript and possibly looking to grab the "extra data" and append it to the pre element.