Skip to content

Commit 36de6f9

Browse files
author
Brett Hazen
committed
Merge pull request #948 from basho/log-pids-to-console
Log PIDs by default for console output
2 parents 8a6ba3f + e36c94e commit 36de6f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/riak_test_escript.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ main(Args) ->
110110
notice
111111
end,
112112

113+
Formatter = {lager_default_formatter, [time," [",severity,"] ", pid, " ", message, "\n"]},
113114
application:set_env(lager, error_logger_hwm, 250), %% helpful for debugging
114-
application:set_env(lager, handlers, [{lager_console_backend, ConsoleLagerLevel},
115+
application:set_env(lager, handlers, [{lager_console_backend, [ConsoleLagerLevel, Formatter]},
115116
{lager_file_backend, [{file, "log/test.log"},
116117
{level, ConsoleLagerLevel}]}]),
117118
lager:start(),

0 commit comments

Comments
 (0)