Custom logging
Theconsole.log()
function is used to log information to the Botpress logs.
To add logging to your bot, follow these steps:
- In a new or existing Execute Code card, add the following code:
- Replace the text with the information you wish to log, or the statement you’d like to print to the console.