Module Log

Description

Module Status: Work in progress.

Usage:

    local Log = require('__eradicators-library__/erlib/lua/Log')()
    

Module methods

Logger(logger_name) Creates or retrieves a Logger object.
set_silent(names) Makes one or more loggers silent.

Logger methods

Logger:set_log_level(log_level) Change log level


Module methods

Logger(logger_name)
Creates or retrieves a Logger object.

Parameters:

Returns:

    Logger Returns a references to the previously created object of the same name if one exists. Else creates a new one.
set_silent(names)
Makes one or more loggers silent. For reducing logspam.

Parameters:

  • names nil or DenseArray A list of logger names to silence. If no list is given then all loggers created so far are silenced.

Logger methods

Logger:set_log_level(log_level)
Change log level

Parameters:

generated by LDoc 1.4.6 Last updated 2021-09-10 19:51:19