From svtesan at gmail.com Tue Dec 7 13:29:29 2010 From: svtesan at gmail.com (Venkatesan S) Date: Tue, 7 Dec 2010 21:29:29 +0800 Subject: [log5-devel] Bug in printing arguments Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gwking at metabang.com Tue Dec 7 16:40:36 2010 From: gwking at metabang.com (Gary King) Date: Tue, 7 Dec 2010 11:40:36 -0500 Subject: [log5-devel] Bug in printing arguments In-Reply-To: References: Message-ID: <07B03052-9289-4CCB-8317-78D343CB947C@metabang.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From svtesan at gmail.com Tue Dec 7 17:52:39 2010 From: svtesan at gmail.com (Venkatesan S) Date: Wed, 8 Dec 2010 01:52:39 +0800 Subject: [log5-devel] Bug in printing arguments In-Reply-To: <07B03052-9289-4CCB-8317-78D343CB947C@metabang.com> References: <07B03052-9289-4CCB-8317-78D343CB947C@metabang.com> Message-ID: Thanks Gary. You rock :) On Wed, Dec 8, 2010 at 12:40 AM, Gary King 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: From gwking at metabang.com Wed Dec 8 14:15:17 2010 From: gwking at metabang.com (Gary King) Date: Wed, 8 Dec 2010 09:15:17 -0500 Subject: [log5-devel] Bug in printing arguments In-Reply-To: References: <07B03052-9289-4CCB-8317-78D343CB947C@metabang.com> Message-ID: <0E1B239A-037E-4F22-B1A6-4B895CE1F701@metabang.com> Hi Venkatesan, I just updated github, etc. with the latest changes. Please let me know how they work for you and/or if you have any other comments or suggestions. thanks, On Dec 7, 2010, at 12:52 PM, Venkatesan S wrote: > Thanks Gary. You rock :) > > > On Wed, Dec 8, 2010 at 12:40 AM, Gary King 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 -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM * gwking on twitter -------------- next part -------------- An HTML attachment was scrubbed... URL: From svtesan at gmail.com Wed Dec 8 15:01:06 2010 From: svtesan at gmail.com (Venkatesan S) Date: Wed, 8 Dec 2010 23:01:06 +0800 Subject: [log5-devel] Bug in printing arguments In-Reply-To: <0E1B239A-037E-4F22-B1A6-4B895CE1F701@metabang.com> References: <07B03052-9289-4CCB-8317-78D343CB947C@metabang.com> <0E1B239A-037E-4F22-B1A6-4B895CE1F701@metabang.com> Message-ID: Now, the variable output works fine. But, I hit another bug: (log5:start-sender 'mylog (log5:stream-sender :location *error-output* :category-spec '(log5:info) :output-spec '(log5:message))) When I try to define a sender like the above, I get: There is no output-specification named NIL. Use defoutput to define output specifications before using them in a sender. [Condition of type LOG5::OUTPUT-NOT-FOUND-ERROR] Restarts: 0: [RETRY] Retry SLIME REPL evaluation request. 1: [*ABORT] Return to SLIME's top level. 2: [TERMINATE-THREAD] Terminate this thread (#) Backtrace: 0: (LOG5::BUILD-HANDLE-MESSAGE-FN #) 1: ((SB-PCL::FAST-METHOD INITIALIZE-INSTANCE :AFTER (LOG5:BASIC-SENDER)) #(3 NIL) # #)[:EXTERNAL] 2: ((SB-PCL::EMF INITIALIZE-INSTANCE) # # # 5864078772937 12) 3: ((SB-PCL::FAST-METHOD MAKE-INSTANCE (CLASS)) # # #)[:EXTERNAL] 4: (LOG5::START-SENDER-FN MYLOG NIL NIL LOG5:STREAM-SENDER)[:EXTERNAL] 5: (SB-INT:SIMPLE-EVAL-IN-LEXENV (LOG5:START-SENDER 'MYLOG (LOG5:STREAM-SENDER :LOCATION *ERROR-OUTPUT* :CATEGORY-SPEC '(LOG5:INFO+) :OUTPUT-SPEC ...)) #) --more-- I will try to see what the problem is, but with my limited lisp skills, I might not get too far :) Thanks for a great piece of code, and your sustained efforts!! On Wed, Dec 8, 2010 at 10:15 PM, Gary King wrote: > Hi Venkatesan, > > I just updated github, etc. with the latest changes. Please let me know how > they work for you and/or if you have any other comments or suggestions. > > thanks, > > On Dec 7, 2010, at 12:52 PM, Venkatesan S wrote: > > Thanks Gary. You rock :) > > > On Wed, Dec 8, 2010 at 12:40 AM, Gary King 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 > > > -- > 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: From gwking at metabang.com Wed Dec 8 15:19:49 2010 From: gwking at metabang.com (Gary King) Date: Wed, 8 Dec 2010 10:19:49 -0500 Subject: [log5-devel] Bug in printing arguments In-Reply-To: References: <07B03052-9289-4CCB-8317-78D343CB947C@metabang.com> <0E1B239A-037E-4F22-B1A6-4B895CE1F701@metabang.com> Message-ID: <1E1D5DDB-7496-4A2D-BABC-49B898B27817@metabang.com> Hi Venkatesan, I think you've got the parenthesis in the wrong place. Try (log5:start-sender 'mylog (log5:stream-sender :location *error-output*) ;; <--- added one here :category-spec '(log5:info) :output-spec '(log5:message)) ;; <-- removed one here regards, On Dec 8, 2010, at 10:01 AM, Venkatesan S wrote: > Now, the variable output works fine. But, I hit another bug: > > (log5:start-sender 'mylog > (log5:stream-sender :location *error-output* > :category-spec '(log5:info) > :output-spec '(log5:message))) > > When I try to define a sender like the above, I get: > > There is no output-specification named NIL. Use defoutput to define output specifications before using them in a sender. > [Condition of type LOG5::OUTPUT-NOT-FOUND-ERROR] > > Restarts: > 0: [RETRY] Retry SLIME REPL evaluation request. > 1: [*ABORT] Return to SLIME's top level. > 2: [TERMINATE-THREAD] Terminate this thread (#) > > Backtrace: > 0: (LOG5::BUILD-HANDLE-MESSAGE-FN #) > 1: ((SB-PCL::FAST-METHOD INITIALIZE-INSTANCE :AFTER (LOG5:BASIC-SENDER)) #(3 NIL) # #)[:EXTERNAL] > 2: ((SB-PCL::EMF INITIALIZE-INSTANCE) # # # 5864078772937 12) > 3: ((SB-PCL::FAST-METHOD MAKE-INSTANCE (CLASS)) # # #)[:EXTERNAL] > 4: (LOG5::START-SENDER-FN MYLOG NIL NIL LOG5:STREAM-SENDER)[:EXTERNAL] > 5: (SB-INT:SIMPLE-EVAL-IN-LEXENV (LOG5:START-SENDER 'MYLOG (LOG5:STREAM-SENDER :LOCATION *ERROR-OUTPUT* :CATEGORY-SPEC '(LOG5:INFO+) :OUTPUT-SPEC ...)) #) > --more-- > > I will try to see what the problem is, but with my limited lisp skills, I might not get too far :) > Thanks for a great piece of code, and your sustained efforts!! > > > On Wed, Dec 8, 2010 at 10:15 PM, Gary King wrote: > Hi Venkatesan, > > I just updated github, etc. with the latest changes. Please let me know how they work for you and/or if you have any other comments or suggestions. > > thanks, > > On Dec 7, 2010, at 12:52 PM, Venkatesan S wrote: > >> Thanks Gary. You rock :) >> >> >> On Wed, Dec 8, 2010 at 12:40 AM, Gary King 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 > > -- > 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 -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM * gwking on twitter -------------- next part -------------- An HTML attachment was scrubbed... URL: From svtesan at gmail.com Wed Dec 8 20:22:12 2010 From: svtesan at gmail.com (Venkatesan S) Date: Thu, 9 Dec 2010 04:22:12 +0800 Subject: [log5-devel] Bug in printing arguments In-Reply-To: <1E1D5DDB-7496-4A2D-BABC-49B898B27817@metabang.com> References: <07B03052-9289-4CCB-8317-78D343CB947C@metabang.com> <0E1B239A-037E-4F22-B1A6-4B895CE1F701@metabang.com> <1E1D5DDB-7496-4A2D-BABC-49B898B27817@metabang.com> Message-ID: I surely am a moron :) Thanks, and you were right. On Wed, Dec 8, 2010 at 11:19 PM, Gary King wrote: > Hi Venkatesan, > > I think you've got the parenthesis in the wrong place. Try > > (log5:start-sender 'mylog > (log5:stream-sender :location *error-output*) ;; <--- added one here > :category-spec '(log5:info) > :output-spec '(log5:message)) ;; <-- removed one > here > > regards, > > On Dec 8, 2010, at 10:01 AM, Venkatesan S wrote: > > Now, the variable output works fine. But, I hit another bug: > > (log5:start-sender 'mylog > (log5:stream-sender :location *error-output* > :category-spec '(log5:info) > :output-spec '(log5:message))) > > When I try to define a sender like the above, I get: > > There is no output-specification named NIL. Use defoutput to define output > specifications before using them in a sender. > [Condition of type LOG5::OUTPUT-NOT-FOUND-ERROR] > > Restarts: > 0: [RETRY] Retry SLIME REPL evaluation request. > 1: [*ABORT] Return to SLIME's top level. > 2: [TERMINATE-THREAD] Terminate this thread (# RUNNING {1003569571}>) > > Backtrace: > 0: (LOG5::BUILD-HANDLE-MESSAGE-FN # {1003B542E1}>) > 1: ((SB-PCL::FAST-METHOD INITIALIZE-INSTANCE :AFTER (LOG5:BASIC-SENDER)) > #(3 NIL) # # {1003B542E1}>)[:EXTERNAL] > 2: ((SB-PCL::EMF INITIALIZE-INSTANCE) # # argument> # 5864078772937 12) > 3: ((SB-PCL::FAST-METHOD MAKE-INSTANCE (CLASS)) # > # #)[:EXTERNAL] > 4: (LOG5::START-SENDER-FN MYLOG NIL NIL LOG5:STREAM-SENDER)[:EXTERNAL] > 5: (SB-INT:SIMPLE-EVAL-IN-LEXENV (LOG5:START-SENDER 'MYLOG > (LOG5:STREAM-SENDER :LOCATION *ERROR-OUTPUT* :CATEGORY-SPEC '(LOG5:INFO+) > :OUTPUT-SPEC ...)) #) > --more-- > > I will try to see what the problem is, but with my limited lisp skills, I > might not get too far :) > Thanks for a great piece of code, and your sustained efforts!! > > > On Wed, Dec 8, 2010 at 10:15 PM, Gary King wrote: > >> Hi Venkatesan, >> >> I just updated github, etc. with the latest changes. Please let me know >> how they work for you and/or if you have any other comments or suggestions. >> >> thanks, >> >> On Dec 7, 2010, at 12:52 PM, Venkatesan S wrote: >> >> Thanks Gary. You rock :) >> >> >> On Wed, Dec 8, 2010 at 12:40 AM, Gary King 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 >> >> >> -- >> 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 > > > -- > 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: From gwking at metabang.com Wed Dec 8 20:27:07 2010 From: gwking at metabang.com (Gary King) Date: Wed, 8 Dec 2010 15:27:07 -0500 Subject: [log5-devel] Bug in printing arguments In-Reply-To: References: <07B03052-9289-4CCB-8317-78D343CB947C@metabang.com> <0E1B239A-037E-4F22-B1A6-4B895CE1F701@metabang.com> <1E1D5DDB-7496-4A2D-BABC-49B898B27817@metabang.com> Message-ID: Hi Venkatesan, > I surely am a moron :) That's very unlikely! :-) > Thanks, and you were right. Great! It would not surprise me if you find more bugs and glitches. I've been much too busy in the last few years to devote much time to CL OS stuff like log5. The spirit is willing but the flesh is tired! regards, > On Wed, Dec 8, 2010 at 11:19 PM, Gary King wrote: > Hi Venkatesan, > > I think you've got the parenthesis in the wrong place. Try > > (log5:start-sender 'mylog > (log5:stream-sender :location *error-output*) ;; <--- added one here > :category-spec '(log5:info) > :output-spec '(log5:message)) ;; <-- removed one here > > regards, > > On Dec 8, 2010, at 10:01 AM, Venkatesan S wrote: > >> Now, the variable output works fine. But, I hit another bug: >> >> (log5:start-sender 'mylog >> (log5:stream-sender :location *error-output* >> :category-spec '(log5:info) >> :output-spec '(log5:message))) >> >> When I try to define a sender like the above, I get: >> >> There is no output-specification named NIL. Use defoutput to define output specifications before using them in a sender. >> [Condition of type LOG5::OUTPUT-NOT-FOUND-ERROR] >> >> Restarts: >> 0: [RETRY] Retry SLIME REPL evaluation request. >> 1: [*ABORT] Return to SLIME's top level. >> 2: [TERMINATE-THREAD] Terminate this thread (#) >> >> Backtrace: >> 0: (LOG5::BUILD-HANDLE-MESSAGE-FN #) >> 1: ((SB-PCL::FAST-METHOD INITIALIZE-INSTANCE :AFTER (LOG5:BASIC-SENDER)) #(3 NIL) # #)[:EXTERNAL] >> 2: ((SB-PCL::EMF INITIALIZE-INSTANCE) # # # 5864078772937 12) >> 3: ((SB-PCL::FAST-METHOD MAKE-INSTANCE (CLASS)) # # #)[:EXTERNAL] >> 4: (LOG5::START-SENDER-FN MYLOG NIL NIL LOG5:STREAM-SENDER)[:EXTERNAL] >> 5: (SB-INT:SIMPLE-EVAL-IN-LEXENV (LOG5:START-SENDER 'MYLOG (LOG5:STREAM-SENDER :LOCATION *ERROR-OUTPUT* :CATEGORY-SPEC '(LOG5:INFO+) :OUTPUT-SPEC ...)) #) >> --more-- >> >> I will try to see what the problem is, but with my limited lisp skills, I might not get too far :) >> Thanks for a great piece of code, and your sustained efforts!! >> >> >> On Wed, Dec 8, 2010 at 10:15 PM, Gary King wrote: >> Hi Venkatesan, >> >> I just updated github, etc. with the latest changes. Please let me know how they work for you and/or if you have any other comments or suggestions. >> >> thanks, >> >> On Dec 7, 2010, at 12:52 PM, Venkatesan S wrote: >> >>> Thanks Gary. You rock :) >>> >>> >>> On Wed, Dec 8, 2010 at 12:40 AM, Gary King 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 >> >> -- >> 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 > > -- > 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 -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM * gwking on twitter -------------- next part -------------- An HTML attachment was scrubbed... URL: