log.lua

changeset 7
038275cd92ed
parent 3
b2df1b3f2c83
equal deleted inserted replaced
6:219d7a7304f8 7:038275cd92ed
1 1
2 module("log", package.seeall) 2 --@module log
3 3
4 require("config") 4 local log={}
5 5
6 function log(str) 6 local config=require("config")
7
8 function log.log(str)
7 if config.debug then 9 if config.debug then
8 io.stderr:write(str) 10 io.stderr:write(str)
9 end 11 end
10 end 12 end
13
14 return log

mercurial