use the standard log options from mirc to do that

alt +o , go the irc carpet and choose logging