<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I am logging some record with set.<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div> State = #state{client_id = ClientId,</div><div> session_id = SessionId,</div><div> user_id = UserId,</div><div> channel_id_set = sets:new(),</div><div> mailbox = []},</div><div> lager:debug("args ~p state ~p", [Args, lager:pr(State, ?MODULE)]),</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">As result I received:</div><div style="font-family:arial,sans-serif;font-size:13px"><pre style="white-space:pre-wrap;color:rgb(0,0,0);font-family:Monaco,'Andale Mono',Consolas,monospace;font-size:0.8em"><div style="font-size:1.05em;margin:0.2em 0px 0px;background:rgb(144,238,144)"><b>*** User 2014-11-11 02:54:02.166 ***</b>
02:54:02.166 ct@x200 debug qlp_client:init:89 args {0,"sid0",0} state #state{client_id=0,session_id="sid0",user_id=0,channel_id_set={set,0,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},mailbox=[]}
</div><div><br></div><div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal">Same with io:format</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal"><div>10> io:format("test ~p", [sets:new()]). </div><div>test {set,0,16,16,8,80,48,</div><div> {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},</div><div> {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}}</div></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal"><br></div></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal">How I can fix the output of the set in lager and io:format?</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal"><br></div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal">Thank you very much,</div><div style="color:rgb(34,34,34);font-family:arial;font-size:small;white-space:normal">Oleg</div></pre></div></div>