anchor.diff:          ?LOG_FIELD_DELIMITER
       ),
       io:format(LogFile, "~s~n", [LogEntry]),
  -    {ok, LogFile};
  +    {ok, State};
   
  -handle_event(_Event, LogFile) ->
  -    {ok, LogFile}.
  +handle_event(_Event, State) ->
  +    {ok, State}.
  +
   
   %% ============================================================================
   %% Internal
  
positive.code: -include("market_types.hrl").
  
  
  %% ============================================================================
  %% API
  %% ============================================================================
  
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) ->
  