Functions:Logging - bettyblocks/cli GitHub Wiki

Logging

To log statements to your Application Logs, you can use the console object that has a function for corresponding severities.


console

Similar to how loglevel works. We support the following functions, which all accept a string as the message.:

  • console.log
  • console.debug
  • console.info
  • console.warn
  • console.error

Where log is an alias for debug. The severity used to log will reflect the severity show in the Application Logs

Example:

console.log('Hello World!')