util/logger.lua

changeset 3540
bc139431830b
parent 3455
67cdc0366d46
child 3554
1770f8aaf04a
equal deleted inserted replaced
3539:8bbd965267b2 3540:bc139431830b
70 level_handlers[i](source_name, level, message, ...); 70 level_handlers[i](source_name, level, message, ...);
71 end 71 end
72 end 72 end
73 73
74 -- To make sure our cached lengths stay in sync with reality 74 -- To make sure our cached lengths stay in sync with reality
75 modify_hooks[logger] = function () num_level_handlers, num_source_handlers = #level_handlers, source_handlers and #source_handlers; end; 75 modify_hooks[logger] = function () num_level_handlers, num_source_handlers = #level_handlers, source_handlers and #source_handlers; end;
76 76
77 return logger; 77 return logger;
78 end 78 end
79 79
80 function setwriter(f) 80 function setwriter(f)

mercurial