anchor.diff:  init([]) ->
       file:make_dir(?PATH_DIR__DATA),
       {ok, LogFile} = file:open(?PATH_FILE__LOG, write),
  -    {ok, LogFile}.
  +    {ok, #state{log_file=LogFile}}.
   
   
  -terminate(_Reason, LogFile) ->
  +terminate(_Reason, #state{log_file=LogFile}=State) ->
       file:close(LogFile),
  -    {ok, LogFile}.
  +    {ok, State}.
   
   
   code_change(_Old, State, _Other) ->
  
positive.code:         ?LOG_FIELD_DELIMITER
      ),
      io:format(LogFile, "~s~n", [LogEntry]),
      {ok, LogFile};
  
  handle_event(_Event, LogFile) ->
      {ok, LogFile}.
  
  %% ============================================================================
  %% Internal
  
negative.code: -include("market_types.hrl").
  
  
  -record(state, {log_file :: pid()}).
  
  
  %% ============================================================================
  %% API
  %% ============================================================================
  