[log5-devel] Bug in printing arguments

Venkatesan S svtesan at gmail.com
Tue Dec 7 17:52:39 UTC 2010


Thanks Gary. You rock :)


On Wed, Dec 8, 2010 at 12:40 AM, Gary King <gwking at metabang.com> wrote:

> Hi Venkatesan,
>
> Thanks for your question. You've stumbled on a bug that I've corrected
> locally but mistakenly failed to update on github.
>
> I'll remedy this later today.
>
> My apologies for my oversite.
>
> regards,
>
>
>
> On Dec 7, 2010, at 8:29 AM, Venkatesan S wrote:
>
> Hi,
>
> 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,
> >(setf a 15)
> >(log-for (info) "a is ~a~%" a)
>
> [after setting up a sender and importing all symbols from log5]
>
> It prints:
> 3500123556 (INFO) a is A
>
> I expected to see: a is 5
>
> Is there anything I am missing? I tried grokking the source, and tried
> putting a , before value in the log-for macro like in:
>
> (defmacro log-for (category-spec message &rest args)
>   (if (%log-p category-spec)
>       `(let ((category (load-time-value
>             (update-category-spec nil ',category-spec)
>             t)))
>      (handle-message
>       (category-id category)
>       ,message
>       , at args))
>       *`(,values))*)
>
> 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)
>
> Thanks,
> Venkatesan
>
>
>
> --
> Audentis fortuna juvat
> _______________________________________________
> log5-devel mailing list
> log5-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/log5-devel
>
>
> --
> Gary Warren King, metabang.com
> Cell: (413) 559 8738
> Fax: (206) 338-4052
> gwkkwg on Skype * garethsan on AIM * gwking on twitter
>
>


-- 
Audentis fortuna juvat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/log5-devel/attachments/20101208/ff0cad7f/attachment.html>


More information about the Log5-devel mailing list