Skip to content

Logging

log.FUNCTION (…)

All functions are on the log object

-- Some example logging
log.info("starting process")
log.error("there was an error!")
log.pairs(someObject)
log.csv(obj.name, obj.age, obj.status)

Available functions

Based on log level

  • debug
  • info
  • error

For specific types of output

  • pairs: will output key value pairs from an object
  • csv: takes a series of strings and generates CSV output