anchor.diff:          false ->
               split_log(Name, tl(L), [hd(L)|M])
       end.
  -
  -%% ns_log stuff
  -
  -ns_log_cat(?UNEXPECTED) -> warn.
  -
  -ns_log_code_string(?UNEXPECTED) -> "unexpected message monitoring port".
  
positive.code:          code_change/3,
           terminate/2]).
  
  -define(UNEXPECTED, 1).
  -export([ns_log_cat/1, ns_log_code_string/1]).
  
  -include_lib("eunit/include/eunit.hrl").
  
  %% Server state
  -record(state, {port, name}).
  
  
  %% API
  
negative.code:     end,
      Port.
  
  log_messages(L, State) ->
      State1 = State#state{messages=ringbuffer:add(hd(L), State#state.messages)},
      receive
          {_Port, {data, Msg}} ->
              log_messages([Msg|L], State1)
      after 0 ->
              split_log(State1#state.name, L, []),
              State1
      end.
  
  split_log(Name, L, M) ->
  