%%%------------------------------------------------------------------- %%% @author cheese %%% @copyright (C) 2016, %%% @doc %%% %%% @end %%% Created : 18. Apr 2016 16:32 %%%------------------------------------------------------------------- -module(logger_Cheese_sup). -author("cheese"). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). -define(SERVER, ?MODULE). -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). init([]) -> logger_Cheese:simple_message("init: ~w~n", [?MODULE]), {ok, {{one_for_one, 5, 10}, [ ?CHILD(logger, worker) ]}}.