I just wrote a quick IRC logger in Python. Requires Dan Connolly's ircAsync module to work. The log format is configurable: just mess about with the strings in the top of the file. Should be easy enough to work out. Released under GPL 2 or later: share and enjoy.