Open LeoLee0097 opened 2 years ago
If you use logger.info
instead of log
, the output will go to the console.
If you want that information to also be written to a file, you can pass -logfile=name.log
to Cooja (so for latest master in the docker image, cooja --args="-logfile=name.log -logdir=/tmp"
will write /tmp/name.log
).
Dear all, I add 3 lines in the file
[contiki-ng]/tools/cooja/apps/powertracker/java/PowerTracker.java
to see the timing they call theradio.isTransmitting()
,radio.isReceiving()
andradio.isInterfered()
.How could I set the log level for Cooja source files, and where could I see the log outputs?