2 local format = string.format;
5 local tostring = tostring;
9 --name = nil; -- While this line is not commented, will automatically fill in file/line number info
10 return function (level, message, ...)
12 local inf = debug.getinfo(3, 'Snl');
13 level = level .. ","..tostring(inf.short_src):match("[^/]*$")..":"..inf.currentline;
16 print(level, format(message, ...));
18 print(level, message);