diff --git a/opencog/cython/opencog/logger.pyx b/opencog/cython/opencog/logger.pyx new file mode 100644 index 0000000000..af9909562a --- /dev/null +++ b/opencog/cython/opencog/logger.pyx @@ -0,0 +1,6 @@ +from ure cimport ure_logger as c_ure_logger +from opencog.logger cimport wrap_clogger, cLogger + +def ure_logger(): + z = wrap_clogger(&c_ure_logger()) + return z diff --git a/opencog/cython/opencog/ure.pxd b/opencog/cython/opencog/ure.pxd index fdf8861534..85e9361321 100644 --- a/opencog/cython/opencog/ure.pxd +++ b/opencog/cython/opencog/ure.pxd @@ -1,6 +1,7 @@ from libcpp.set cimport set from libcpp.vector cimport vector from opencog.atomspace cimport cHandle, cAtomSpace +from opencog.logger cimport cLogger cdef extern from "opencog/ure/forwardchainer/ForwardChainer.h" namespace "opencog": @@ -69,3 +70,7 @@ cdef extern from "opencog/ure/backwardchainer/BackwardChainer.h" namespace "open void do_chain() except + cHandle get_results() const + + +cdef extern from "opencog/ure/URELogger.h" namespace "opencog": + cdef cLogger& ure_logger() diff --git a/opencog/cython/opencog/ure.pyx b/opencog/cython/opencog/ure.pyx index 4095904948..5af6b556f4 100644 --- a/opencog/cython/opencog/ure.pyx +++ b/opencog/cython/opencog/ure.pyx @@ -6,4 +6,5 @@ # things work or not include "forwardchainer.pyx" -include "backwardchainer.pyx" \ No newline at end of file +include "backwardchainer.pyx" +include "logger.pyx"