diff --git a/python/opendht.pyx b/python/opendht.pyx
index 5b7400d95f19aee93696f7816ecf488aea20f8ed..f226945f734cc32dfae551b6e50df6512b544811 100644
--- a/python/opendht.pyx
+++ b/python/opendht.pyx
@@ -280,6 +280,12 @@ cdef class DhtRunner(_WithID):
         cb_obj = {'shutdown':shutdown_cb}
         ref.Py_INCREF(cb_obj)
         self.thisptr.shutdown(cpp.Dht.bindShutdownCb(shutdown_callback, <void*>cb_obj))
+    def enableLogging(self):
+        cpp.enableLogging(self.thisptr[0])
+    def disableLogging(self):
+        cpp.disableLogging(self.thisptr[0])
+    def enableFileLogging(self, str path):
+        cpp.enableFileLogging(self.thisptr[0], path)
     def isRunning(self):
         return self.thisptr.isRunning()
     def getStorageLog(self):