Am Montag, 2. März 2020 07:07:09 UTC schrieb Nil: > > Hi Alex, > > On 2/29/20 6:20 PM, Alexander Gabriel wrote:> Do you know of a way to > get access to the URE logger from python that > > already works? > > Unfortunately I don't know a way, useless you call scheme from within > python of course. It looks like you'd need to create logger python > bindings and find a way to access the ure logger instance, as done in > scheme >
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. 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?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/2ecb9f33-8106-4113-8d5c-9dac39917151%40googlegroups.com.
