Add `warn` log level
This commit is contained in:
parent
c92f6a7b7f
commit
db2d30caaf
|
@ -1089,6 +1089,9 @@ function core.log_quiet(...)
|
|||
return log("INFO", false, false, ...)
|
||||
end
|
||||
|
||||
function core.warn(...)
|
||||
return log("WARN", true, true, ...)
|
||||
end
|
||||
|
||||
function core.error(...)
|
||||
return log("ERROR", true, true, ...)
|
||||
|
|
|
@ -76,6 +76,7 @@ style.syntax_fonts = {}
|
|||
|
||||
style.log = {
|
||||
INFO = { icon = "i", color = style.text },
|
||||
WARN = { icon = "!", color = style.warn },
|
||||
ERROR = { icon = "!", color = style.error }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue