Module log

A simple utility for logging purposes.

This utility uses the minetest.log() method. If the minetest object is not available, it will fallback to printing the messages to stdout.

Functions

action (...) Logs an action.
error (...) Logs an error.
info (...) Logs an info.
log (level, ...) Logs a message with the given level.
set_print_all (print_all) Allows to activate or deactivate that all messages are printed.
verbose (...) Logs a message.

Fields

print_all Whether all messages should be printed instead of being handed to Minetest (if available).


Functions

action (...)
Logs an action.

Parameters:

  • ... The message to log.
error (...)
Logs an error.

Parameters:

  • ... The message to log.
info (...)
Logs an info.

Parameters:

  • ... The message to log.
log (level, ...)
Logs a message with the given level.

Parameters:

  • level The log level, should be action, error, info or verbose to stay compatible with minetest.
  • ... The message to log.
set_print_all (print_all)
Allows to activate or deactivate that all messages are printed.

Parameters:

  • print_all true if all messages should be printed, false if messages should be handed to Minetest (if available).
verbose (...)
Logs a message.

Parameters:

  • ... The message to log.

Fields

print_all
Whether all messages should be printed instead of being handed to Minetest (if available).
generated by LDoc 1.4.2