diff options
| author | onefang | 2026-03-14 20:23:11 +1000 |
|---|---|---|
| committer | onefang | 2026-03-14 20:23:11 +1000 |
| commit | 716337d3d4b7f58cea8dad110c412b69c4f01b99 (patch) | |
| tree | 88688ea8ae8b8ee2104fac3a0fd1aebe19e35dd9 | |
| parent | Add test script. (diff) | |
| download | polygLua-716337d3d4b7f58cea8dad110c412b69c4f01b99.zip polygLua-716337d3d4b7f58cea8dad110c412b69c4f01b99.tar.gz polygLua-716337d3d4b7f58cea8dad110c412b69c4f01b99.tar.bz2 polygLua-716337d3d4b7f58cea8dad110c412b69c4f01b99.tar.xz | |
Make the log levels more distinctive.
| -rwxr-xr-x | polygLua.lua | 10 |
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 | |||
| 31 | end | 31 | end |
| 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 |
| 34 | D = function(s) log(5, 'DEBUG ', s) end | 34 | D = function(s) log(5, 'dEbUg ', s) end |
| 35 | --- log PRINT level string | 35 | --- log PRINT level string |
| 36 | P = function(s) log(4, 'PRINT ', s) end | 36 | P = function(s) log(4, ' ', s) end |
| 37 | --- log INFO level string | 37 | --- log INFO level string |
| 38 | I = function(s) log(3, 'INFO ', s) end | 38 | I = function(s) log(3, 'info ', s) end |
| 39 | --- log TIMEOUT level string | 39 | --- log TIMEOUT level string |
| 40 | T = function(s) log(2, 'TIMEOUT ', s) end | 40 | T = function(s) log(2, 'TIMEOUT ', s) end |
| 41 | --- log WARNING level string | 41 | --- log WARNING level string |
| 42 | W = function(s) log(1, 'WARNING ', s) end | 42 | W = function(s) log(1, 'Warning ', s) end |
| 43 | --- log ERROR level string | 43 | --- log ERROR level string |
| 44 | E = function(s) log(0, 'ERROR ', s) end | 44 | E = function(s) log(0, 'ERROR! ', s) end |
| 45 | --- log CRITICAL level string | 45 | --- log CRITICAL level string |
| 46 | C = function(s) log(-1, 'CRITICAL ', s) end | 46 | C = function(s) log(-1, 'CRITICAL ', s) end |
| 47 | 47 | ||
