Javascript Misc console log

From FreeSWITCH Wiki
Jump to: navigation, search

Logs a message to the console logger.

Synopsis

console_log(message)
console_log(level, message)
  • You most likely want to add a \n to the end of your message, other than that its just a text string.
  • In the single-argument form, the level defaults to "debug"
  • Levels: "DEBUG", "INFO", "NOTICE", "WARNING", "ERR", "CRIT", "ALERT".

Example

console_log("Hello there\n");
console_log("WARNING", "Ho!\n");

See Also