From 716337d3d4b7f58cea8dad110c412b69c4f01b99 Mon Sep 17 00:00:00 2001 From: onefang Date: Sat, 14 Mar 2026 20:23:11 +1000 Subject: Make the log levels more distinctive. --- polygLua.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'polygLua.lua') 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 end -- This sets the global values, here and in the caller. --- log DEBUG level string -D = function(s) log(5, 'DEBUG ', s) end +D = function(s) log(5, 'dEbUg ', s) end --- log PRINT level string -P = function(s) log(4, 'PRINT ', s) end +P = function(s) log(4, ' ', s) end --- log INFO level string -I = function(s) log(3, 'INFO ', s) end +I = function(s) log(3, 'info ', s) end --- log TIMEOUT level string T = function(s) log(2, 'TIMEOUT ', s) end --- log WARNING level string -W = function(s) log(1, 'WARNING ', s) end +W = function(s) log(1, 'Warning ', s) end --- log ERROR level string -E = function(s) log(0, 'ERROR ', s) end +E = function(s) log(0, 'ERROR! ', s) end --- log CRITICAL level string C = function(s) log(-1, 'CRITICAL ', s) end -- cgit v1.1