Well, when I try to search my active custom window it searches the last active channel window instead. Here's what I used if you'd care to try it out for yourself;

Code:
alias view.log {
  var %f = $logdir $+ $mklogfn($1), %w = @ $+ $mklogfn($1)
  if ($isfile(%f)) {
    window -k0d %w
    loadbuf 2000 %w %f
  }
}