%%%--------------------------------------------------------------------------- %% @doc erllambda_app - Erllambda Application behavior %% %% This module implements the Erlang application behavior, and %% starts the simple http server endpoint used by the javascript driver. %% %% %% @copyright 2018 Alert Logic, Inc. %%%--------------------------------------------------------------------------- -module(erllambda_app). -behavior(application). %% Application callbacks -export([start/2, stop/1]). %%==================================================================== %% API %%==================================================================== start(_StartType, _StartArgs) -> Sup = erllambda_sup:start_link(), error_logger:tty(false), error_logger:add_report_handler(erllambda_error_handler), Sup. %%-------------------------------------------------------------------- stop(_State) -> error_logger:delete_report_handler(erllambda_error_handler), ok.