anchor.diff:      NewState.
   
   rotate_files(#state{path = Path,
  -                    rotation_num_files = NumFiles}) ->
  -    rotate_files_loop(Path, NumFiles - 1).
  -
  -rotate_files_loop(Path, 0) ->
  +                    rotation_num_files = NumFiles,
  +                    rotation_compress = Compress}) ->
  +    Suffix = case Compress of
  +                 true ->
  +                     ".gz";
  +                 false ->
  +                     ""
  +             end,
  +
  +    rotate_files_loop(Path, Suffix, NumFiles - 1).
  +
  +rotate_files_loop(Path, _Suffix, 0) ->
       case file:delete(Path) of
           ok ->
               ok;
           Error ->
               Error
       end;
  -rotate_files_loop(Path, 1) ->
  +rotate_files_loop(Path, _Suffix, 1) ->
       To = Path ++ ".1",
       case do_rotate_file(Path, To) of
           ok ->
  
positive.code:         Error ->
              Error
      end.
  
negative.code:     RotationConf = proplists:get_value(rotation, Opts, []),
      RotSize = proplists:get_value(size, RotationConf, 10485760),
      RotNumFiles = proplists:get_value(num_files, RotationConf, 20),
      RotCompress = proplists:get_value(compress, RotationConf, true),
  
      State = #state{path = Path,
                     buffer = <<>>,
  