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 int new logging level, must be one of the levels from Logger.levels

Usage:

    Logger:setLevel(Logger.levels.warn)

Tables

Logger.levels
Supported logging levels

Fields:

  • dbg debug
  • info informational (default level)
  • warn warning
  • err error
generated by LDoc 1.4.6 Last updated 2017-08-17 09:26:49