On 3/2/20 3:09 PM, Alexander Gabriel wrote:
Hi Nil,
there is a python interface for the logger which I expanded to be able to set the component, but that interface creates its own logger singleton.

Oh, I see, so in order to use opencog's logger in Python ones needs to first create one with

https://github.com/opencog/atomspace/blob/f7b99ec12d920f7a385cc477dd54abdc0a8768b1/opencog/cython/opencog/logger.pyx#L38-L47

Am I correct?

If so then it's badly done, it should allow the user to access OpenCog's singleton, and ultimately other component's like the URE's.

Nil

The URE code creates another logger singleton different from that. The two don't interact as far as I can tell. I tried to set the URE logger to DEBUG through scheme code executed by python's scheme_eval() but that only produces output if the chainer is started in scheme, it doesn't when the chainer is started from python.

There are two ways out of this that I can see: make the URE logger singleton accessible from the chainer python interface, or change the chainer python bindings to use the python logger instead. The former is probably easier but messier.

Best,
Alex



     >
     > Best,
     >
     > Alex
     >
     > --
     > You received this message because you are subscribed to the Google
     > Groups "opencog" group.
     > To unsubscribe from this group and stop receiving emails from it,
    send
     > an email to [email protected] <javascript:>
     > <mailto:[email protected] <javascript:>>.
     > To view this discussion on the web visit
     >
    
https://groups.google.com/d/msgid/opencog/402a7064-035e-4cb6-85eb-484a058feac9%40googlegroups.com
    
<https://groups.google.com/d/msgid/opencog/402a7064-035e-4cb6-85eb-484a058feac9%40googlegroups.com>

     >
    
<https://groups.google.com/d/msgid/opencog/402a7064-035e-4cb6-85eb-484a058feac9%40googlegroups.com?utm_medium=email&utm_source=footer
    
<https://groups.google.com/d/msgid/opencog/402a7064-035e-4cb6-85eb-484a058feac9%40googlegroups.com?utm_medium=email&utm_source=footer>>.


--
You received this message because you are subscribed to the Google Groups "opencog" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/2ecb9f33-8106-4113-8d5c-9dac39917151%40googlegroups.com <https://groups.google.com/d/msgid/opencog/2ecb9f33-8106-4113-8d5c-9dac39917151%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/opencog/fbba269f-c42a-0326-de34-61f123843864%40gmail.com.

Reply via email to