Reading/Tailing a log file
i need to show a console log on my website, and I would like to know how to read/tail a text file and show it with styling,
my first thoughts was to pass the text into an array line by line, and I would like to ouput every entry in a <div class"something"></div> tag. and on top of that i would like to apply a different class to any line including the words [ERROR] or [WARNING]
I would like to end up with having the last 50 lines or so shown on the site, and then have all errors and warning lines marked with red
thx in advance
How is the data being sent to the browser?
Last edited by Tcobb; 10-18-2013 at 03:22 PM.
Originally Posted by Tcobb
The log file is a local file located in /var/www
i've considered using AJAX, but i also stumbled upon something concerning ioSocket, but i have no idea which one to use.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)