client/init.lua, lua_bindings/misc: buildat.Logger:trace()

master
Perttu Ahola 2014-10-22 11:43:59 +03:00
parent 9ef4bedf5f
commit f9cabdb8d8
2 changed files with 7 additions and 1 deletions

View File

@ -68,6 +68,10 @@ function buildat.Logger(module)
text = fix_text(text)
__buildat_print_log("debug", module, text)
end
function logger:trace(text)
text = fix_text(text)
__buildat_print_log("trace", module, text)
end
return logger
end
buildat.safe.Logger = buildat.Logger

View File

@ -15,7 +15,9 @@ static int l_print_log(lua_State *L)
const char *module_c = lua_tostring(L, 2);
const char *text_c = lua_tostring(L, 3);
int loglevel = LOG_INFO;
if(level == "debug")
if(level == "trace")
loglevel = LOG_TRACE;
else if(level == "debug")
loglevel = LOG_DEBUG;
else if(level == "verbose")
loglevel = LOG_VERBOSE;