Skip to content

Latest commit

 

History

History
54 lines (31 loc) · 833 Bytes

log.md

File metadata and controls

54 lines (31 loc) · 833 Bytes

Log

log

The log library can be used for diagnostics logging.

local log = require("log");

log.trace( message )

Logs a trace level message (typically used for debugging).

log.trace("something happened");

log.info( message )

Logs an information level message normal logging.

log.info("something really exciting happened! :D");

log.warn( message )

Logs a warning level message (non-critical important problems).

log.warn("something bad happened, but we can recover :)");

log.error( message )

Logs an error level message (critical problems).

log.error("something really bad happened! >.<");