2

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.

Albert Lazaro de Lara
  • 2,540
  • 6
  • 26
  • 41

1 Answers1

2

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.

stefan.stt
  • 2,357
  • 5
  • 24
  • 47
  • event is a good solution, or a service with a `log` function so you centralize all logs... – JLS Sep 15 '17 at 16:50