Turns logging on and off for a window.
/log <on|off> <window> [-f filename]
If you specify a filename the logs file dialog is not popped up.
Echoes if the active window is being logged or not.
Turns on logging for the active window.
/log on @debug
/log on @debug -f C:\log.txt
Logs custom window @debug to C:\log.txt (filename may be affected by logging options.)