Software /
code /
prosody
Diff
tests/util/logger.lua @ 7923:81f3068fc30c
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 01 Mar 2017 02:38:05 +0100 |
parent | 7921:1821a7cabaa5 |
line wrap: on
line diff
--- a/tests/util/logger.lua Sat Feb 25 17:41:39 2017 +0100 +++ b/tests/util/logger.lua Wed Mar 01 02:38:05 2017 +0100 @@ -14,7 +14,8 @@ local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring; local do_pretty_printing = not os.getenv("WINDIR"); -module "logger" +local _ENV = nil +local _M = {} local logstyles = {}; @@ -25,7 +26,7 @@ logstyles["error"] = getstyle("bold", "red"); end -function init(name) +function _M.init(name) --name = nil; -- While this line is not commented, will automatically fill in file/line number info return function (level, message, ...) if level == "debug" or level == "info" then return; end