2017-11-30 17:09:48 +00:00
|
|
|
[
|
|
|
|
{lager, [
|
|
|
|
{error_logger_hwm, 600},
|
|
|
|
{log_root, "/var/log/shortener"},
|
|
|
|
{handlers, [
|
|
|
|
{lager_console_backend, debug},
|
|
|
|
{lager_file_backend, [
|
|
|
|
{file, "console.json"},
|
|
|
|
{level, debug},
|
|
|
|
{formatter, lager_logstash_formatter}
|
|
|
|
]}
|
|
|
|
]},
|
|
|
|
{extra_sinks, [
|
|
|
|
{shortener_access_lager_event, [
|
|
|
|
{handlers, [
|
|
|
|
{lager_file_backend, [
|
|
|
|
{file, "access_log.json"},
|
|
|
|
{level, info},
|
|
|
|
{formatter, lager_logstash_formatter}
|
|
|
|
]}
|
|
|
|
]},
|
|
|
|
{async_threshold, 20},
|
|
|
|
{async_threshold_window, 5}
|
|
|
|
]}
|
|
|
|
]}
|
|
|
|
]},
|
|
|
|
|
|
|
|
{shortener, [
|
2017-12-07 17:59:24 +00:00
|
|
|
{automaton_service_url, "http://machinegun:8022/v1/automaton"},
|
2017-11-30 17:09:48 +00:00
|
|
|
{ip, "::"},
|
2017-12-01 11:44:25 +00:00
|
|
|
{port, 8080}
|
2017-11-30 17:09:48 +00:00
|
|
|
]}
|
|
|
|
].
|