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, ...)
|
return log("INFO", false, false, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function core.warn(...)
|
||||||
|
return log("WARN", true, true, ...)
|
||||||
|
end
|
||||||
|
|
||||||
function core.error(...)
|
function core.error(...)
|
||||||
return log("ERROR", true, true, ...)
|
return log("ERROR", true, true, ...)
|
||||||
|
|
|
@ -76,6 +76,7 @@ style.syntax_fonts = {}
|
||||||
|
|
||||||
style.log = {
|
style.log = {
|
||||||
INFO = { icon = "i", color = style.text },
|
INFO = { icon = "i", color = style.text },
|
||||||
|
WARN = { icon = "!", color = style.warn },
|
||||||
ERROR = { icon = "!", color = style.error }
|
ERROR = { icon = "!", color = style.error }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue