From /help /log
Quote:
/log <on|off> <window> [-f filename]

Turns logging on and off for a window, if you specify a filename the logs file dialog is not popped up.


For channels use the channel name for <window>
For private messages use the person's nick
For status use "Status Window" (quotes are REQUIRED)