From e6e837ba5d0ea35fef661c365e9491925fb0cb42 Mon Sep 17 00:00:00 2001 From: James Aimonetti Date: Mon, 24 Jun 2013 10:40:48 -0700 Subject: [PATCH] KAZOO-929: add app.config for lager config --- app.config | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app.config diff --git a/app.config b/app.config new file mode 100644 index 0000000..293050d --- /dev/null +++ b/app.config @@ -0,0 +1,15 @@ +[ + {lager, [ + {handlers, [ + {lager_console_backend, info} + ,{lager_file_backend, [ + {file, "log/error.log"}, {level, error}, {size, 10485760}, {date, "$D0"}, {count, 5} + ]} + ,{lager_file_backend, [ + {file, "log/console.log"}, {level, info}, {size, 10485760}, {date, "$D0"}, {count, 5} + ]} + ,{lager_syslog_backend, ["2600hz", local0, debug, {lager_kazoo_formatter,["|", {callid, <<"0000000000">>}, "|", module, ":", line, " (",pid, ") ", message, "\n"]}]} + ]}, + {colored, false} + ]} +].