Logbot is a project mainly written in Shell, it's free.
A minimalist IRC channel logging bot written in shell
logbot is a minimalist IRC logging bot written in shell.
In IRC, invite the logbot to any channels you want to log. Logfiles accumulate under logbot/log/main/. They contain raw IRC message lines prefixed with tai64 timestamps.