anchor.diff:          Error ->
               Error
       end;
  -rotate_files_loop(Path, N) ->
  -    From = Path ++ "." ++ integer_to_list(N - 1),
  -    To = Path ++ "." ++ integer_to_list(N),
  +rotate_files_loop(Path, Suffix, N) ->
  +    From = Path ++ "." ++ integer_to_list(N - 1) ++ Suffix,
  +    To = Path ++ "." ++ integer_to_list(N) ++ Suffix,
   
       case do_rotate_file(From, To) of
           ok ->
  -            rotate_files_loop(Path, N - 1);
  +            rotate_files_loop(Path, Suffix, N - 1);
           Error ->
               Error
       end.
  
positive.code:     NewState.
  
  rotate_files(#state{path = Path,
                      rotation_num_files = NumFiles}) ->
      rotate_files_loop(Path, NumFiles - 1).
  
  rotate_files_loop(Path, 0) ->
      case file:delete(Path) of
          ok ->
              ok;
          Error ->
              Error
      end;
  rotate_files_loop(Path, 1) ->
      To = Path ++ ".1",
      case do_rotate_file(Path, To) of
          ok ->
  
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 = <<>>,
  