Sha256: e189dd627ce9bc7997b5b0307f1009bd3a0d784130241bf7c369e41ab6dfafeb

Contents?: true

Size: 411 Bytes

Versions: 27

Compression:

Stored size: 411 Bytes

Contents

-module(logger_sup).
-behaviour(supervisor).
-export([start_link/0, init/1]).

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

init([]) ->
  {ok, LogLevel} = application:get_env(ernie_server_app, log_level),
  io:format("Using log level ~p~n", [LogLevel]),
  {ok, {{one_for_one, 1, 60},
    [{logger, {logger, start_link, [[LogLevel]]},
    permanent, brutal_kill, worker, [logger]}]}}.

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
mojombo-ernie-0.3.0 elib/logger_sup.erl
mojombo-ernie-0.3.1 elib/logger_sup.erl
mojombo-ernie-0.3.2 elib/logger_sup.erl
mojombo-ernie-0.3.3 elib/logger_sup.erl
mojombo-ernie-0.3.4 elib/logger_sup.erl
ernie-2.5.2 elib/logger_sup.erl
ernie-2.5.1 elib/logger_sup.erl
ernie-2.5.0 elib/logger_sup.erl
ernie-2.4.0 elib/logger_sup.erl
ernie-2.3.0 elib/logger_sup.erl
ernie-2.2.1 elib/logger_sup.erl
schleyfox-ernie-2.2.3 elib/logger_sup.erl
schleyfox-ernie-2.2.2 elib/logger_sup.erl
schleyfox-ernie-2.2.1 elib/logger_sup.erl
ernie-2.2.0 elib/logger_sup.erl
ernie-2.1.0 elib/logger_sup.erl
ernie-2.0.0 elib/logger_sup.erl
ernie-1.3.0 elib/logger_sup.erl
ernie-1.2.0 elib/logger_sup.erl
ernie-1.1.0 elib/logger_sup.erl