anchor.diff:  trace_tty(Bool) ->
       gen_server:call(?MODULE, {trace_tty, Bool}, infinity).
   
  -%% XXX: Dead code
  -%% from external ctl prog
  -%%actl_trace(What) ->
  -%%    gen_server:call(?MODULE, {actl_trace, What}, infinity).
  +%% Useful for embeddded yaws when we don't want yaws to
  +%% automatically wrap the logs.
  +reopen_logs() ->
  +    {ok, _GC, SCs} = yaws_api:getconf(),
  +    gen_server:call(?MODULE, {reopen, SCs}).
   
   
   %%%----------------------------------------------------------------------
  
positive.code:             io:format("~s", [binary_to_list(list_to_binary([Str]))])
      end.
  
  %% XXX: yaws_log is not a gen_event and is not an event handler on
  %% yaws_event_manager.
  %%----------------------------------------------------------------------
  %% Func: handle_event/2
  %% Returns:
  %%----------------------------------------------------------------------
  %%handle_event({yaws_hupped, _Res}, State) ->
  %%    handle_info(minute10,State),
  %%    {ok, State};
  
  %%handle_event(_Event, State) ->
  %%    {ok, State}.
  
  
  
  
  %%----------------------------------------------------------------------
  
negative.code: handle_call({trace_tty, What}, _From, State) ->
      {reply, ok, State#state{tty_trace = What}};
  handle_call(state, _From, State) ->
      {reply, State, State};
  
  handle_call({reopen, Sconfs}, _From, State) ->
      Dir = State#state.dir,
      %% close all files
      yaws_logger:close_logs(),
      
      %% reopen logfiles
      SCs = lists:flatten(Sconfs),
      lists:foreach(fun(SC) ->
                            yaws_logger:open_log(SC, auth, Dir),
                            yaws_logger:open_log(SC, access, Dir)
                    end, SCs),
      {reply, ok, State}.
  
  %%----------------------------------------------------------------------
  %% Func: handle_cast/2
  