Comparison

init.lua @ 94:b40465267fb5

verse: Add stream:set_loglevels()
author Matthew Wild <mwild1@gmail.com>
date Mon, 09 Aug 2010 13:57:08 +0100
parent 64:a28540d4117a
child 95:d67ad403ca55
comparison
equal deleted inserted replaced
93:2442e751f3cb 94:b40465267fb5
99 end 99 end
100 end 100 end
101 return old_logger; 101 return old_logger;
102 end 102 end
103 103
104 function stream_mt:set_log_levels(levels)
105 self:set_logger(nil, levels);
106 end
107
104 -- Event handling 108 -- Event handling
105 function stream:event(name, ...) 109 function stream:event(name, ...)
106 self:debug("Firing event: "..tostring(name)); 110 self:debug("Firing event: "..tostring(name));
107 return self.events.fire_event(name, ...); 111 return self.events.fire_event(name, ...);
108 end 112 end