diff --git a/python/opendht_cpp.pxd b/python/opendht_cpp.pxd
index 29f9f65a6022e66cc6522a1509c47d7d57ac9a85..f88797c36c0ba8c42d0e7e2d144c3dbca485f276 100644
--- a/python/opendht_cpp.pxd
+++ b/python/opendht_cpp.pxd
@@ -153,3 +153,9 @@ cdef extern from "opendht/dhtrunner.h" namespace "dht":
         vector[unsigned] getNodeMessageStats(bool i)
 
 ctypedef DhtRunner.Config Config
+
+cdef extern from "opendht/log.h" namespace "dht::log":
+    void enableLogging(DhtRunner& dht)
+    void disableLogging(DhtRunner& dht)
+    void enableFileLogging(DhtRunner& dht, const string& path)
+