anchor.diff:          [] ->
               ok;
           Buf ->
  -            ?log_info(format_lines(State#state.name, lists:reverse(Buf))),
  +            ?log_info(format_lines(port_name(State), lists:reverse(Buf))),
               case State#state.dropped of
                   0 ->
                       ok;
                   Dropped ->
                       ?log_warning("Dropped ~p log lines from ~p",
  -                                 [Dropped, State#state.name])
  +                                 [Dropped, port_name(State)])
               end
       end,
       State#state{log_tref=undefined, log_buffer=[], dropped=0};
  
positive.code: -include_lib("eunit/include/eunit.hrl").
  
  %% Server state
  -record(state, {port :: port() | {inactive, tuple()},
                  name :: term(),
                  messages,
                  logger :: atom(),
                  log_tref :: timer:tref(),
  
negative.code:             Port ! {self(), {command, Data}}
      end,
      Port.
  
  port_name(#state{params = Params}) ->
      {Name, _, _, _} = Params,
      Name.
  