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)

Tables

Logger.levels
Supported logging levels

Fields:

  • dbg debug
  • info informational (default level)
  • warn warning
  • err error
generated by LDoc 1.5.0 Last updated 2024-11-21 07:57:34