anchor.diff:     {reply, Records, State};
   handle_call({get_record, RecNum}, _From, State) ->
      FmtRecord = record_formatter_html:format(log_viewer_srv:show(RecNum)),
  -   {reply, FmtRecord, State}.
  +   {reply, FmtRecord, State};
  +handle_call(get_doc_root, _From, State) ->
  +   {reply, State#state.document_root, State}.
   
   handle_cast({rescan, MaxRecords}, State) ->
      log_viewer_srv:rescan(MaxRecords),
  
positive.code:          {proceed, [{response, {404, "ERROR: Page " ++ Uri ++ " not found."}}]}
     end.
  
  get_port(Options) ->
     case proplists:get_value(inets_port, Options) of
        undefined ->
           case application:get_env(inets_port) of
              undefined ->
                 8000;
              {ok, Val} ->
                 Val
           end;
        Port ->
           Port
     end.
  
  rescan(Query) when is_list(Query) ->
  
negative.code: 
  init(Options) ->
     inets:start(),
     DocRoot = filename:nativename(get_option(document_root, Options, ".")),
     {ok, Pid} = inets:start(httpd, [
        {port, get_option(inets_port, Options, 8000)},
        {server_name, "log_viewer"},
        {server_root, "."},
        {document_root, DocRoot},
        {modules, [?MODULE]},
        {mime_types, [{"css", "text/css"}, {"js", "text/javascript"}, {"html", "text/html"}]}
     ]),
     link(Pid),
     {ok, #state{document_root = DocRoot}}.
  
  handle_call(get_types, _, State) ->
     {reply, log_viewer_srv:get_types(), State};
  