anchor.diff:  -export([start/1, stop/2, flush_and_stop/1, drop_and_stop/1, log/3, log/4, set_loglevel/2]).
   -export([init/1, terminate/2, handle_call/3, handle_cast/2, handle_info/2, code_change/3]).
   
  --record(state, {output, loglevel, log_timestamp, format, eagerness, buffer = []}).
  +-record(state, {output, loglevel, log_timestamp, format, eagerness, buffer = [], wm_mref}).
   
   %% Configuration defaults
   -define(DEFAULT_LOGLEVEL, 0).
  
positive.code:     gen_udp:send(Socket, Address, Port, ToLog),
      Buffer.
  
  open(Output) ->
      case Output of
          {file, {io_device, File}} ->
  
negative.code:             io_lib:format(Text, Data)
      end.
  
  
  do_log(_Output, {at_once, _Fun}, ToLog, Buffer) ->
      [ToLog | Buffer];
  do_log(_Output, delayed, ToLog, Buffer) when length(Buffer) < ?BUFFER_SIZE_N ->
  