Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (11 sloc) 0.411 kB
-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]}]}}.
Jump to Line
Something went wrong with that request. Please try again.