In order to activate the logger you need to add the following lines:
It is possible to set the output stream of the messages inside a file:
Here the file is "/tmp/dg-LOGS.txt".
Inside the constructor of the entity:
The first line sets the frequency at which the logger will be updated.
The second line specifies at which frequency the message should be printed.
The third line specifies the level of message to accept.
The fourth line returns the level of verbosity. In this case, all messages are accepted.
The full list of options are:
Here is some example on how to display or record some information.