Software /
code /
verse
Comparison
init.lua @ 234:a597da99810c
verse: Connections use global Verse logger by default
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 27 Nov 2011 21:41:44 +0000 |
parent | 205:cbcd45be11a8 |
child | 236:d75a209e57fc |
comparison
equal
deleted
inserted
replaced
233:b5fd3292bdbd | 234:a597da99810c |
---|---|
19 verse.plugins = {}; | 19 verse.plugins = {}; |
20 | 20 |
21 function verse.new(logger, base) | 21 function verse.new(logger, base) |
22 local t = setmetatable(base or {}, stream); | 22 local t = setmetatable(base or {}, stream); |
23 t.id = tostring(t):match("%x*$"); | 23 t.id = tostring(t):match("%x*$"); |
24 t:set_logger(logger, true); | 24 t:set_logger(logger or verse.log, true); |
25 t.events = events.new(); | 25 t.events = events.new(); |
26 t.plugins = {}; | 26 t.plugins = {}; |
27 return t; | 27 return t; |
28 end | 28 end |
29 | 29 |