Pepper: use logger class in js

226 views Asked by At

Is there any way to use Pepper logger functions in JavaScript like in Python to write in Choregraphe log?

The console.log() from JS doesn't work.

1

There are 1 answers

1
stefan.stt On BEST ANSWER

Use alert() instead of console.log() but this way it will pop-up the information on the tablet, not in the choregraphe log.

Other think you can do is to raise an event with a the message you want to log as a string. This event to be handled with a python script that logs the passed string with the Pepper's logger.