Logging IRSSI and Rotating them with Logrotate

I’ve often wanted to look back at chat logs. Below are a few simple steps you can take to enable logging in IRSSI and add the log files to the logrotate daemon.

Make irssi log all chat windows:

Tell logrotate to auto-rotate them:

Test that log rotation works for a channel (ie: #xml on freenode):