This should be in Scripts & Popups, but whatever.
Is this something that you want to only log your own actions? Or every user's actions?
Edit: Since you went offline I'll just post the simple script and see if you want something else later when you get back.
on 1:INPUT:#: {
if ($1 != .timeout) return
write log.txt ( $+ # $+ ) < $+ $time(yyyy-mm-dd) @ $time $+ > $1-
}
If you want to log different channels to different text files you'd do it like this:
on 1:INPUT:#: {
if ($1 != .timeout) return
write # $+ log.txt ( $+ # $+ ) < $+ $time(yyyy-mm-dd) @ $time $+ > $1-
}