Sha256: 638c6b580b1f126200ae619162e8da049851e2412b1af6584bd37a1e4e8d2d8f

Contents?: true

Size: 504 Bytes

Versions: 11

Compression:

Stored size: 504 Bytes

Contents

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

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

init([AccessLog]) ->
  case AccessLog of
    undefined -> io:format("No access log~n", []);
    Any -> io:format("Using access log ~p~n", [Any])
  end,
  {ok, {{one_for_one, 1, 60},
    [{ernie_access_logger, {ernie_access_logger, start_link, [[AccessLog]]},
    permanent, brutal_kill, worker, [ernie_access_logger]}]}}.

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
ernie-2.5.2 elib/ernie_access_logger_sup.erl
ernie-2.5.1 elib/ernie_access_logger_sup.erl
ernie-2.5.0 elib/ernie_access_logger_sup.erl
ernie-2.4.0 elib/ernie_access_logger_sup.erl
ernie-2.3.0 elib/ernie_access_logger_sup.erl
ernie-2.2.1 elib/ernie_access_logger_sup.erl
schleyfox-ernie-2.2.3 elib/ernie_access_logger_sup.erl
schleyfox-ernie-2.2.2 elib/ernie_access_logger_sup.erl
schleyfox-ernie-2.2.1 elib/ernie_access_logger_sup.erl
ernie-2.2.0 elib/ernie_access_logger_sup.erl
ernie-2.1.0 elib/ernie_access_logger_sup.erl