Diff

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
line wrap: on
line diff
--- a/init.lua	Sun Aug 08 01:21:22 2010 +0100
+++ b/init.lua	Mon Aug 09 13:57:08 2010 +0100
@@ -101,6 +101,10 @@
 	return old_logger;
 end
 
+function stream_mt:set_log_levels(levels)
+	self:set_logger(nil, levels);
+end
+
 -- Event handling
 function stream:event(name, ...)
 	self:debug("Firing event: "..tostring(name));