<div dir="ltr">Yes, see my previous letter - it is exactly what I want and it works :)<div>Thank you!<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 10, 2014 at 1:06 PM, Robert Raschke <span dir="ltr"><<a href="mailto:rtrlists@googlemail.com" target="_blank">rtrlists@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi Oleg,<br><br></div>a very recent addition to the lager beckends appears to be a common_test one: <a href="https://github.com/basho/lager/blob/master/src/lager_common_test_backend.erl" target="_blank">https://github.com/basho/lager/blob/master/src/lager_common_test_backend.erl</a><br><br></div>So, you could either run against the HEAD, or alternatively (as I do), copy the file next to your CT suites and tweak as you require (I changed the ct:pal/1 calls to ct:log/1).<br><br></div>My CT sys.config now contains:<br><br>    { lager, [<br>        { handlers, [<br>            { lager_console_backend, error },<br>            { lager_common_test_backend, debug }<br>        ] }<br>    ] }<br><br></div>So, for me, everything goes into the CT logs, and only errors to the console.<br><br></div>Hope this helps,<br>Robby<br><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 9 November 2014 21:24, Oleg Tsarev <span dir="ltr"><<a href="mailto:oleg@oleg.sh" target="_blank">oleg@oleg.sh</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello!<div><br></div><div>I use lager + common test. </div><div>I configured lager for output to console.</div><div><br></div><div>During test lager calls print output to my terminal, and test-related log is empty.</div><div>io:format works as I want - no output in my terminal, only in test-related log.</div><div><br></div><div>How I can configure lager for see lager outputs in the log file instead of terminal?</div><div><br></div><div>Best regards, Oleg</div></div>
<br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div>