html - How to make an HTML5 file grow? -
i writing logger in c++ generates html5 output in real time. html file must readable @ time, while growing.
so far open file, delete last few lines close block (</body></html>
), add new log messages , close block again.
is approach, or there better solutions?
- another approach read (through xmlhttprequest) log file directly javascript inside html file , generate html within browser. may end being quite slow large log files though (100 mb+).
- if thing need wrap textual log file header , footer, can create markup needed , add
<iframe src="log.txt">
tag between header , footer,src
attribute point raw textual log file. wouldn't suite if need format log somehow, of course.
Comments
Post a Comment