<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">So the combination of single_line => true, and the ~0p format field gives me what I want.<div class="">Thanks.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 10, 2018, at 3:07 AM, Siri Hansen <<a href="mailto:erlangsiri@gmail.com" class="">erlangsiri@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">Den tor. 9. aug. 2018 kl. 16:42 skrev Mark Geib <<a href="mailto:mark.geib.44@gmail.com" class="">mark.geib.44@gmail.com</a>>:<br class=""></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" class="">Yes that removed the extra commas. Of course now the log messages are multi-line.<div class=""><br class=""></div><div class="">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 class="">io_lib:print(MyBigMap,1,8192,-1) and then log the string?</div></div></blockquote><div class=""><br class=""></div><div class="">Yes, or you could specify field with 0 with ~p to indicate infinite line length, e.g.</div><div class=""><br class=""></div><div class="">logger:notice("my map: ~0p",[MyMap])</div><div class=""><br class=""></div><div class="">(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 class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Regards</div><div class="">/siri</div></div></div>
</div></blockquote></div><br class=""></div></body></html>