anchor.diff:           ,config/0
            ,config/1
            ,config/2
  +         ,start/0
  +         ,a_start/2
           ]).
   
   -include("logplex.hrl").
   -include("logplex_logging.hrl").
  +
  +%%%===================================================================
  +%%% Convenience Functions
  +%%%===================================================================
  +
  +start() ->
  +    a_start(?APP, permanent).
   
   %% ===================================================================
   %% Application callbacks
  
positive.code: -module(logplex_app).
  -behaviour(application).
  
  %% Application callbacks
  -export([start/2, stop/1]).
  
  
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}).
  