[SLL] Testing...

This commit is contained in:
2026-08-03 16:16:59 +03:00
parent cb29cf4fc5
commit 2a82989954
+12 -1
View File
@@ -42,12 +42,15 @@ class LogDesign():
DSGN_BLKLIST = ["-","X","<",">","L"] DSGN_BLKLIST = ["-","X","<",">","L"]
def log(logValue,logLevel=1,DesignObject=LogDesign,ShowLogLevel=False): def match_chars(log_type: str, DesignObject=LogDesign, ShowLogLevel=False, logLevel=0) -> str:
out = "" out = ""
for char in DesignObject.template: for char in DesignObject.template:
match char: match char:
case "L": case "L":
match log_type:
case "Log":
out += DesignObject.logChar out += DesignObject.logChar
case "l": case "l":
if ShowLogLevel: out += str(logLevel) if ShowLogLevel: out += str(logLevel)
@@ -59,6 +62,14 @@ def log(logValue,logLevel=1,DesignObject=LogDesign,ShowLogLevel=False):
case _: case _:
out += char out += char
return out
def log(logValue,logLevel=1,DesignObject=LogDesign,ShowLogLevel=False):
out = match_chars("Log", DesignObject, ShowLogLevel, logLevel)
out = DesignObject.logColor + out + DesignObject.RESET out = DesignObject.logColor + out + DesignObject.RESET
print(out , logValue) print(out , logValue)