The log
library can be used for diagnostics logging.
local log = require("log");
Logs a trace level message (typically used for debugging).
log.trace("something happened");
Logs an information level message normal logging.
log.info("something really exciting happened! :D");
Logs a warning level message (non-critical important problems).
log.warn("something bad happened, but we can recover :)");
Logs an error level message (critical problems).
log.error("something really bad happened! >.<");