Libtorrent Logging through python bindings, possible?

438 Views Asked by At

I noticed the Rasterbar/Libtorrent page mentions the possiblity of "verbose logging of the DHT protocol traffic"

http://www.rasterbar.com/products/libtorrent/building.html

Does anyone know if its possible to do with the python bindings?

Cheers!

1

There are 1 best solutions below

1
On

From what I read in the C++ source, compiling with dht logging just makes the library log into a file (dht.log), and there doesn't seem to be any API on top of that.

Now, you may want to take a look at the parse_dht_log.py file at the root of the source distribution of libtorrent - depending on what you want to do, this may get you started in parsing that log file.

Hope this helps.