minetest.log

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

minetest.log("loglevel", ["line"])

Description

loglevel is one of "deprecated", "error", "action", "info", "verbose", if line is nil then line=loglevel.

Depending on loglevel and configuration settings (such as debug_log_level), these messages may be reported in the chat console, to the Minetest server's stderr/stdout streams (typically visible in the operating system command terminal where minetest was started, if any), and in the debug.txt log file.

Examples

minetest.log("Mod loaded")
minetest.log("error", "Failed to load mod")
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox