Try:

Code:
Save Log:{ 
  set %log_file $+(",$logdir,Misc\Notices\,$mkfn($gettok($active,2,160)),.log")
  if (!$isfile(%log_file)) { write %log_file }
  filter -rwk 1-200 $active _write
  unset %log_file
}