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:
- logger_name string
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:
- log_level number 0,1,2,3,4