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