Module logger.lua

Logger module.

Functions

get_logger() Get a logger object.
logger:enable(enabled) Enable or disable a logger.
logger:log(value) Print a value
inspect(value) Inspect a value


Functions

get_logger()
Get a logger object.

The logger object can be used to enable loggers that can be enabled and disabled individually.

Returns:

    A logger object.

See also:

logger:enable(enabled)
Enable or disable a logger.

Parameters:

  • enabled bool True to enable, false to disable.
logger:log(value)
Print a value Tables are expanded recursively.

Parameters:

  • value Value to print.
inspect(value)
Inspect a value Tables are expanded recursively.

Parameters:

  • value Value to inspect.
generated by LDoc 1.4.6 Last updated 2021-10-13 21:46:39