
-module(smpp34_log_sup).

-behaviour(supervisor).

%% API
-export([start_link/0, start_child/0]).

%% Supervisor callbacks
-export([init/1]).

%% Helper macro for declaring children of supervisor
-define(CHILD(I, Type), {I, {I, start_link, []}, temporary, 5000, Type, [I]}).

%% ===================================================================
%% API functions
%% ===================================================================

start_link() ->
    supervisor:start_link({local, ?MODULE}, ?MODULE, []).

start_child() ->
	supervisor:start_child(?MODULE, []).

%% ===================================================================
%% Supervisor callbacks
%% ===================================================================

init([]) ->
    {ok, { {simple_one_for_one, 5, 10}, [?CHILD(smpp34_log, worker)]} }.


 API
 Supervisor callbacks
 Helper macro for declaring children of supervisor
 ===================================================================
 API functions
 ===================================================================
 ===================================================================
 Supervisor callbacks
 ===================================================================

-module(smpp34_log_sup).

-behaviour(supervisor).

-export([start_link/0, start_child/0]).

-export([init/1]).

-define(CHILD(I, Type), {I, {I, start_link, []}, temporary, 5000, Type, [I]}).


start_link() ->
    supervisor:start_link({local, ?MODULE}, ?MODULE, []).

start_child() ->
	supervisor:start_child(?MODULE, []).


init([]) ->
    {ok, { {simple_one_for_one, 5, 10}, [?CHILD(smpp34_log, worker)]} }.

