JBotSim
JBotSim copied to clipboard
A logging tool for JBotSim
When using JBotSim to develop a distributed algorithm, an integrated logging tool for debug and results recording would be a really nice feature.
For the last algorithm I developed with JBotSim, I used the default java.util.Logger to log the messages sent and received by the nodes, and hard code it for each message.
Possible features:
- The possibility to log every message sent/received during a run with respect to a level of severity or the message tag (could be extended to other events).
- The possibility to log custom messages from the user code.
- The possibility to write this log into a
.txtfile
Thanks for the suggestion. So far, one can set the MessageEngine to debugging mode, by calling Topology.getMessageEngine().setDebug(true). The result is that all the exchanged messages and corresponding nodes IDs gets printed. This is admittedly quite poor, so yes, we can consider / discuss such options.