Manual · API
log
The console, and the application's log file.
Every command on this page carries a worked example.
log function
log(anything, …)
Pretty-prints anything — records and collections included — to the console while developing, and into the application's log file (at the information level) in a built application.
It pretty-prints records and whole query results —
log(query.all()) during development answers "what is actually in there" faster than any breakpoint.Worked example
log("Import started", new Date());
log(form.record); // a record prints its fields
log(database.customers.where("town", "=", "Hull").all());
Manual