client/init.lua, lua_bindings/misc: buildat.Logger:trace()
This commit is contained in:
parent
9ef4bedf5f
commit
f9cabdb8d8
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user