harnen / p2p-service-discovery

0 stars 4 forks source link

Create a logging system #6

Open harnen opened 4 years ago

harnen commented 4 years ago

I've added a logging system to the KademliaProtocol class. I didn't change it everywhere. Let's first see if it's handy.

It's not easy to use object-base attributes as prefixes in the logging system (i.e., a node id). Thus, I create a separate logger for each node and set it's name to node's id.