use the file permissions of the rule for the log file

- add back the file permissions parameter for opening the log file
  of each rule (have been lost when making zlog work on windows).