elli_log_exceptions

Elli middleware that will log exceptions at a configurable log level and with or without the full stacktrace:

ElliOpts = [{callback, elli_middleware},
            {callback_args, [{mods, [{elli_log_exceptions, elli_log_exceptions:config([])},
                                     ...]}]},
            {port, 3000}],

ElliChildSpec = #{id => elli_handler,
                  start => {elli, start_link, [ElliOpts]},
                  restart => permanent,
                  type => worker,
                  modules => [elli_log_exceptions]},

elli_log_exceptions:config/1 takes a proplist of options: