summaryrefslogtreecommitdiff
path: root/src/ldapsp_app.erl
blob: 793cd4dc6fd86bde7a7b5f934f6da886c9c2dfa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-module(ldapsp_app).

-behaviour(application).
-export([
    start/2,
    stop/1
]).

start(_Type, _StartArgs) ->
    LogHandlers = [{webmachine_access_log_handler, ["priv/log"]},
                   {webmachine_error_log_handler, ["priv/log"]}],
    application:set_env(webmachine, log_handlers, LogHandlers), 
    % Evil hack so we reprocess the app config
    webmachine:stop(),
    webmachine:start(),
    ldapsp_sup:start_link().

stop(_State) ->
    ok.