summaryrefslogtreecommitdiff
path: root/Debug/init.lua
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-07-31 20:13:58 +0800
committerchai <chaifix@163.com>2018-07-31 20:13:58 +0800
commit0efe3cf55bde25c0627899b36dbe1694dd338234 (patch)
tree0a3e755ab402337985acad191193488db9df7d1e /Debug/init.lua
parent6d8683c933c55fa117b465c4e35b08c28143ef1c (diff)
+loghelper
Diffstat (limited to 'Debug/init.lua')
-rw-r--r--Debug/init.lua27
1 files changed, 0 insertions, 27 deletions
diff --git a/Debug/init.lua b/Debug/init.lua
deleted file mode 100644
index 86a192e..0000000
--- a/Debug/init.lua
+++ /dev/null
@@ -1,27 +0,0 @@
--- 不能使用 debug 命名模块,会冲突,
--- 要使用其余名字比如 Debug
-local debug = {}
-io.stdout:setvbuf("no")
-
-debug.LEVEL = {
- INFO = 4,
- DEBUG = 3,
- WARN = 2,
- ERROR = 1,
- NONE = 0
-}
-
-debug.level = debug.LEVEL.INFO
-
-debug.strict = function(level)
- debug.level = level
-end
-
-debug.log = function(level, fmt, ...)
- if level <= debug.level then
- local msg = string.format(fmt, ...)
- print(msg)
- end
-end
-
-return debug \ No newline at end of file