anchor.diff:  %% Description: Handling cast messages
   %%--------------------------------------------------------------------
   handle_cast({log, Request}, State) ->
  -  case State#lstate.access_filename of
  +  case State#lstate.access_file_name of
       undefined -> ok;
       _AccessFilename -> log(Request, State)
     end,
     {noreply, State};
  -handle_cast(_Msg, State) -> {noreply, State}.
  +handle_cast(reopen, State) ->
  +  case State#lstate.access_file_name of
  +    undefined ->
  +      {noreply, State};
  +    AccessFileName ->
  +      ok = file:close(State#lstate.access_file),
  +      {ok, AccessFile} = file:open(AccessFileName, [append]),
  +      {noreply, State#lstate{access_file = AccessFile}}
  +  end;
  +handle_cast(_Msg, State) ->
  +  {noreply, State}.
   
   handle_info(Msg, State) ->
     error_logger:error_msg("Unexpected message: ~p~n", [Msg]),
  
positive.code:   end,
    Args = [TAccept, D1, D2, HQ, LQ, Type, Prio, Trunc],
    Line = io_lib:fwrite("[~s] ~f ~f - ~B ~B ~p ~p ~s~n", Args),
    file:write(State#lstate.access_file, Line),
    io:format("~s", [Line]).
  
  time_tuple_to_iso_8601_date(TimeTuple) ->
    {{YY, MM, DD}, {H, M, S}} = calendar:now_to_local_time(TimeTuple),
  
negative.code: 
  -include_lib("ernie.hrl").
  
  -record(lstate, {access_file_name = undefined,
                   access_file = undefined}).
  
  %%====================================================================
  