[antum] Add individual functions for log levels

This commit is contained in:
AntumDeluge 2017-05-03 17:50:00 -07:00
parent ceb8f471ce
commit 2f27d7dd84

View File

@ -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