aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoronefang2026-03-14 20:23:11 +1000
committeronefang2026-03-14 20:23:11 +1000
commit716337d3d4b7f58cea8dad110c412b69c4f01b99 (patch)
tree88688ea8ae8b8ee2104fac3a0fd1aebe19e35dd9
parentAdd test script. (diff)
downloadpolygLua-716337d3d4b7f58cea8dad110c412b69c4f01b99.zip
polygLua-716337d3d4b7f58cea8dad110c412b69c4f01b99.tar.gz
polygLua-716337d3d4b7f58cea8dad110c412b69c4f01b99.tar.bz2
polygLua-716337d3d4b7f58cea8dad110c412b69c4f01b99.tar.xz
Make the log levels more distinctive.
-rwxr-xr-xpolygLua.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/polygLua.lua b/polygLua.lua
index 008011e..72104ac 100755
--- a/polygLua.lua
+++ b/polygLua.lua
@@ -31,17 +31,17 @@ local log = function( v, -- verbosity
31end 31end
32-- This sets the global values, here and in the caller. 32-- This sets the global values, here and in the caller.
33--- log DEBUG level string 33--- log DEBUG level string
34D = function(s) log(5, 'DEBUG ', s) end 34D = function(s) log(5, 'dEbUg ', s) end
35--- log PRINT level string 35--- log PRINT level string
36P = function(s) log(4, 'PRINT ', s) end 36P = function(s) log(4, ' ', s) end
37--- log INFO level string 37--- log INFO level string
38I = function(s) log(3, 'INFO ', s) end 38I = function(s) log(3, 'info ', s) end
39--- log TIMEOUT level string 39--- log TIMEOUT level string
40T = function(s) log(2, 'TIMEOUT ', s) end 40T = function(s) log(2, 'TIMEOUT ', s) end
41--- log WARNING level string 41--- log WARNING level string
42W = function(s) log(1, 'WARNING ', s) end 42W = function(s) log(1, 'Warning ', s) end
43--- log ERROR level string 43--- log ERROR level string
44E = function(s) log(0, 'ERROR ', s) end 44E = function(s) log(0, 'ERROR! ', s) end
45--- log CRITICAL level string 45--- log CRITICAL level string
46C = function(s) log(-1, 'CRITICAL ', s) end 46C = function(s) log(-1, 'CRITICAL ', s) end
47 47