<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Den tor. 9. aug. 2018 kl. 16:42 skrev Mark Geib <<a href="mailto:mark.geib.44@gmail.com">mark.geib.44@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Yes that removed the extra commas. Of course now the log messages are multi-line.<div><br></div><div>So to get a single line message for maps, without the commas, is the only approach to format the message with something like</div><div>io_lib:print(MyBigMap,1,8192,-1) and then log the string?</div></div></blockquote><div><br></div><div>Yes, or you could specify field with 0 with ~p to indicate infinite line length, e.g.</div><div><br></div><div>logger:notice("my map: ~0p",[MyMap])</div><div><br></div><div>(Using the value 0 here is new from OTP-21, see the description of control sequence 'p' in the ref.man for io:format.)</div><div><br></div><div>I do, however, see this a bug in logger. It needs to be a bit more sophisticated when ensuring single line - I'm looking into it.</div><div><br></div><div>Regards</div><div>/siri</div></div></div>