Skip to content

Commit

Permalink
Logging prefix master (2600hz#4548)
Browse files Browse the repository at this point in the history
* add log_prefix to log lines

* fix format

* add space
  • Loading branch information
mark2600 authored and k-anderson committed Feb 6, 2018
1 parent 8f3ca32 commit 67160a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rel/sys.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
,{formatter_config, [time, " ", color, severity, " ", {module,[module],""}, {line,[".",line," "],""}, "\e[0m", message, "\n"]}]}
,{lager_file_backend, [{file, "log/error.log"}, {level, error}, {size, 10485760}, {date, "$D0"}, {count, 5}
,{formatter, lager_default_formatter}
,{formatter_config, [time," [",severity,"] ", {log_id, ["|", log_id, "|"], [{msg_id, ["|", msg_id, "-", callid, "|"], [{callid, ["|", callid, "|"], ""}]}]}, {module, ""}, {line, [":", line, " "], ""}, "(",pid, ") ", message, "\n"]}
,{formatter_config, [time," [",severity,"] ", "|", {callid, <<"0000000000">>}, "|", module, ":", line, "(",pid, ") ", {log_prefix, ["[", log_prefix, "] "], ""}, message, "\n"]}
]}
,{lager_file_backend, [{file, "log/console.log"}, {level, info}, {size, 10485760}, {date, "$D0"}, {count, 5}
,{formatter, lager_default_formatter}
,{formatter_config, [time," [",severity,"] ", {log_id, ["|", log_id, "|"], [{msg_id, ["|", msg_id, "-", callid, "|"], [{callid, ["|", callid, "|"], ""}]}]}, {module, ""}, {line, [":", line, " "], ""}, "(",pid, ") ", message, "\n"]}
,{formatter_config, [time," [",severity,"] ", "|", {callid, <<"0000000000">>}, "|", module, ":", line, "(",pid, ") ", {log_prefix, ["[", log_prefix, "] "], ""}, message, "\n"]}
]}
,{lager_syslog_backend, ["2600hz", local0, debug
,{lager_default_formatter, [{log_id, ["|", log_id, "|"], [{msg_id, ["|", msg_id, "-", callid, "|"], [{callid, ["|", callid, "|"], ""}]}]}, {module, ""}, {line, [":", line, " "], ""}, "(",pid, ") ", message, "\n"]}
,{lager_default_formatter, ["|", {callid, <<"0000000000">>}, "|", module, ":", line, "(",pid, ") ", {log_prefix, ["[", log_prefix, "] "], ""}, message, "\n"]}
]}
]}
,{extra_sinks, [{data_lager_event,[{handlers, [{lager_file_backend,[{file, "/dev/null"} ,{level, debug}]}]}]}]}
Expand Down

0 comments on commit 67160a7

Please sign in to comment.