From 2f27d7dd84c79f049a8854b7a14cc28be4c01a8b Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Wed, 3 May 2017 17:50:00 -0700 Subject: [PATCH] [antum] Add individual functions for log levels --- antum/functions.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/antum/functions.lua b/antum/functions.lua index 4a99dbd..94add57 100644 --- a/antum/functions.lua +++ b/antum/functions.lua @@ -26,8 +26,16 @@ -- Displays a message in the log +function antum.log(level, mod, message) + minetest.log(level, '[' .. mod .. '] ' .. message) +end + function antum.log_action(mod, message) - minetest.log('action', '[' .. mod .. '] ' .. message) + antum.log('action', mod, message) +end + +function antum.log_warn(mod, message) + antum.log('warning', mod, message) end