irclog2html is a tool allowing you to convert IRC log files to HTML with pretty colors.
pip install irclog2html
Quick usage for a single log file:
irclog2html filename.log (produces filename.log.html)
Mass-conversion of logs (one file per day, with YYYY-MM-DD in the filename) with next/prev links, with mtime checks, usable from cron:
logs2html directory/ (looks for *.log, produces *.log.html)
CGI script for log searching
The script can be easily abused to cause a denial of service attack; it parses all log files every time you perform a search.
You can generate search boxes on IRC log pages by passing the --searchbox option to logs2html. Here's an example Apache config snippet that makes it work:
RewriteRule ^/my-irclog/search/$ /my-irclog/search [R,L]
ScriptAlias /my-irclog/search /usr/local/bin/irclogsearch
< Location /my-irclog/search >
SetEnv IRCLOG_LOCATION "/var/www/my-irclog/"
< /Location >
Bug tracker: https://bugs.launchpad.net/irclog2html
Here are some key features of "irclog2html":
· XHTML & CSS output
· Unique, automatic nick colours (preserved across nick changes)
· URL highlighting
· Bookmarkable timestamps for each line
· Navigation links between daily log files
What's New in This Release: [ read full changelog ]
· Fix AttributeError in irclogsearch on Python 2.7 (https://github.com/mgedmin/irclog2html/issues/1).