Module logger
Logger module.
See Logger.levels for list of supported levels.
Example:
local logger = require("logger") logger.info("Something happened.") logger.err("House is on fire!")
Functions
Logger:setLevel (new_lvl) | Set logging level. |
Tables
Logger.levels | Supported logging levels |
Functions
- Logger:setLevel (new_lvl)
-
Set logging level. By default, level is set to info.
Parameters:
- new_lvl integer new logging level, must be one of the levels from Logger.levels
Usage:
Logger:setLevel(Logger.levels.warn)