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 STREAM messages 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 and the STREAM message are displayed on the output streams once on five.
The full list of options are:
Here is some example on how to display or record some information.
Specifying the file with FILE and the line inside the file by LINE are necessary for the STREAM messages. Indeed they are indexed using the two values. As the default value are "" and 0 the counting will be confused.