Software /
code /
prosody
Comparison
util/logger.lua @ 974:82f7261c0482
Merge
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 10 Apr 2009 10:31:38 +0100 |
parent | 896:2c0b9e3c11c3 |
child | 977:6f0bdf9e4dfb |
comparison
equal
deleted
inserted
replaced
973:b091a1a7273b | 974:82f7261c0482 |
---|---|
47 end | 47 end |
48 | 48 |
49 if not log_this then return function () end end | 49 if not log_this then return function () end end |
50 end | 50 end |
51 | 51 |
52 if name == "modulemanager" or name:match("^c2s") or name == "datamanager" then return function () end; end | |
53 | |
52 --name = nil; -- While this line is not commented, will automatically fill in file/line number info | 54 --name = nil; -- While this line is not commented, will automatically fill in file/line number info |
53 local namelen = #name; | 55 local namelen = #name; |
54 return function (level, message, ...) | 56 return function (level, message, ...) |
55 if outfunction then return outfunction(name, level, message, ...); end | 57 if outfunction then return outfunction(name, level, message, ...); end |
56 | 58 |