anchor.diff:  %% persistent logger process.
   do_log(Level, Format, Arguments) when atom(Level), list(Format), list(Arguments) ->
       {Megasec, Sec, USec} = now(),
  -    USecStr = string:substr(integer_to_list(USec), 1, 3),
  +    USecStr = format_usec(USec, 3),
       DateTime = util:sec_to_date(Megasec * 1000000 + Sec),
       LogTS = lists:concat([DateTime, ".", USecStr]),
       gen_server:cast(logger, {log, Level, LogTS, Format, Arguments, self()}),
       ok.
   
  +%% Precision = integer(),range = 1 - 6
  +format_usec(Usec, Precision) ->
  +    Str = integer_to_list(Usec),
  +    FullStr = string:right(Str, 6, $0), % pad left side with 0, to full 6 char length
  +    string:substr(FullStr, 1 , Precision).
   
   %%--------------------------------------------------------------------
   %%% Interface functions
  
positive.code: 	_ ->
  	    log(normal, Msg)
      end,
      case catch gen_server:cast(logger, {quit}, 1000) of
  	{ok} ->
  	    ok;
          _ ->
  
negative.code: 		normal_iodev=NormalIoDevice, normal_fn=NormalFn,
  		error_iodev=ErrorIoDevice, error_fn=ErrorFn}}.
  
  
  %%--------------------------------------------------------------------
  %% Function: handle_call(Msg, From, State)
  %%           Msg = {rotate_logs} |
  %%                 {rotate_logs, Suffix} |
  %%                 {rotate_logs, Suffix, Logs} |
  %%                 {quit}                           quite logger
  %%           Suffix = string(), log date suffix to use,
  %%           default = current time
  %%           Logs = atom(), logs to update, default = all logs
  %% Descrip.: Handling call messages
  %% Returns : {reply, Reply, State}          |
  %%           {reply, Reply, State, Timeout} |
  %%           {noreply, State}               |
  %%           {noreply, State, Timeout}      |
  %%           {stop, Reason, Reply, State}   | (terminate/2 is called)
  %%           {stop, Reason, State}            (terminate/2 is called)
  %% Note    : This code is not invoked from anywhere. Intended for
  %%           future use when rotate_log may be triggered from other
  %%           sources than the timer, but can of course be used
  %%           manually (from the erl shell) on a running system.
  %%--------------------------------------------------------------------
  handle_call({rotate_logs}, From, State) ->
      %% Create rotation filename suffix from current time
  