anchor.diff:  -module(logplex_app).
   -behaviour(application).
   
  +-define(APP, logplex).
  +
  +
   %% Application callbacks
   -export([start/2, stop/1]).
   
  
positive.code:          ,config/0
           ,config/1
           ,config/2
          ]).
  
  -include("logplex.hrl").
  -include("logplex_logging.hrl").
  
  %% ===================================================================
  %% Application callbacks
  
negative.code: 
  config() ->
      application:get_all_env(logplex).
  
  a_start(App, Type) ->
      start_ok(App, Type, application:start(App, Type)).
  
  start_ok(_App, _Type, ok) -> ok;
  start_ok(_App, _Type, {error, {already_started, _App}}) -> ok;
  start_ok(App, Type, {error, {not_started, Dep}}) ->
      ok = a_start(Dep, Type),
      a_start(App, Type);
  start_ok(App, _Type, {error, Reason}) ->
      erlang:error({app_start_failed, App, Reason}).
  