Hello out there..
I wrote a PHP script to highlight my log files in a web browser. Thought it might be useful to someone out there. There are samples of it's output at http://www.hi.is/~arnarbi/shot1.html and http://www.hi.is/~arnarbi/shot2.html. I don't have any logs from a real channel, if anyone tries this out with actual data and could post samples, it would be wonderful. Btw. the blue-background highlighted strings in shot1.html were acquired by using an url like http://kassi.oddi.is/~arnarb/irc-loggar ... ?hi=eggert (this url is not publicly available).
It's simple to set up, put your logfiles in a directory available to your web server, use a .htaccess file to define an action for text/plain files which serves them through the script. Step-by-step instructions are found inside the script itself.
It has the following features:
- higlights channel logs (logged with jpk flags)
- reckognizes all 16 irc colors, bold and underline formatting
- makes urls clickable
- inserts "silence for m hours n minutes" where appropriate
- no preprocessing needed, acts as a http handler for text/plain files
- highlighting of search string if "?hi=whatever" is appended to the url
The script is available at http://www.hi.is/~arnarbi/formatter.txt, just change the .txt ending to .php, .php4 or whatever your webserver uses.
Arnar