<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Venkatesan,<div><br></div><div>Thanks for your question. You've stumbled on a bug that I've corrected locally but mistakenly failed to update on github.</div><div><br></div><div>I'll remedy this later today.</div><div><br></div><div>My apologies for my oversite.</div><div><br></div><div>regards,</div><div><br></div><div><br></div><div><br><div><div>On Dec 7, 2010, at 8:29 AM, Venkatesan S wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br clear="all"></div><div><br></div><div>I am a new user of log5 (and lisp in general). When I tried playing around, I found that log5 has a problem printing variables. For eg, </div><div>>(setf a 15)</div><div>
>(log-for (info) "a is ~a~%" a)</div><div><br></div><div>[after setting up a sender and importing all symbols from log5]</div><div><br></div><div>It prints:</div><div>3500123556 (INFO) a is A<br></div><div><br>
</div><div>I expected to see: a is 5</div><div><br></div><div>Is there anything I am missing? I tried grokking the source, and tried putting a , before value in the log-for macro like in:<br><br>(defmacro log-for (category-spec message &rest args)<br>
(if (%log-p category-spec)<br> `(let ((category (load-time-value <br> (update-category-spec nil ',category-spec)<br> t)))<br> (handle-message<br> (category-id category)<br> ,message<br>
,@args))<br> <span style="color: rgb(153, 153, 255);"> </span><i style="color: rgb(255, 0, 0);">`(<b>,</b>values))</i><span style="color: rgb(255, 0, 0);">)</span><br><br></div><div>But this did not help. Can anyone please let me know how to achieve what I want? If it is useful, I am using sbcl 64 bit on Centos 5.5 and the latest clog5 (v0.3.1)<br>
<br>Thanks,<br>Venkatesan<br></div><div><br></div><div><br></div><br>-- <br>
Audentis fortuna juvat<br>
_______________________________________________<br>log5-devel mailing list<br><a href="mailto:log5-devel@common-lisp.net">log5-devel@common-lisp.net</a><br>http://common-lisp.net/cgi-bin/mailman/listinfo/log5-devel<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Gary Warren King, <a href="http://metabang.com/">metabang.com</a> <br>Cell: (413) 559 8738<br>Fax: (206) 338-4052<br>gwkkwg on Skype * garethsan on AIM * gwking on twitter<br></div></div></span></div></span></span>
</div>
<br></div></body></html>