JBotSim icon indicating copy to clipboard operation
JBotSim copied to clipboard

MessageEngine debug mode

Open acasteigts opened this issue 4 years ago • 5 comments

The DefaultMessageEngine offers a method setDebug() that makes it possible to print a log of the messages in the Standard Error. It would be good to generalize this method into the MessageEngine interface, so that all message engines can offer such a feature, or to externalize it to another component through the message listeners interface.

acasteigts avatar Oct 06 '21 15:10 acasteigts

A method setDebug() was added to the MessageEngine interface. A default (empty) implementation was provided, for compatibility with potential existing message engine.

Merged into develop.

acasteigts avatar Oct 12 '21 12:10 acasteigts

(Will be closed when released.)

acasteigts avatar Oct 16 '21 11:10 acasteigts

The above changes correspond to commit 6e499fa (the commit message was missing reference to this issue).

acasteigts avatar Nov 03 '21 15:11 acasteigts

Merged into develop.

acasteigts avatar Nov 03 '21 15:11 acasteigts

Looks good to me. Ready to be shipped in next release.

Rmq: I don't think this new piece of code is used anywhere in the production/test/example code of the project. This is not vital, but we should try and add something in that direction, should the occasion arise.

remikey avatar Nov 04 '21 18:11 remikey