Carpet

Carpet

2M Downloads

[Scarpet Suggestion] Multiple log levels for Scarpet logger() function

altrisi opened this issue ยท 4 comments

commented

Currently, the logger() function in Scarpet always uses the error log type, and there is no way to change it.
My suggestion would be an argument to specify the "severity" of the message to be logged, since currently the only way to change this is by using print() instead of logger(), which would use the regular info log type, but would also print the message in chat in most cases, and still debug, warn and fatal are unreachable.

(names based in the vanilla launcher's output log viewer)

commented

good idea

commented

working on it

commented

cool. Won't be touching it then.
suggest
logger(msg) or logger(level, msg) where level ~ {'debug', 'warn', 'fatal', 'info', 'error'}

commented

yeah, thinking smth like that