http://www.ecs.soton.ac.uk/~sdh300/projects/ircd-logging/
This is a patch for ircd-hybrid to add full logging of almost all activity. It dumps all conversations (both private and public) and connections/disconnections to the server to a file, activity.log.