Commit 1a5b8f67 authored by Nong Hoang Tu's avatar Nong Hoang Tu
Browse files

add color

parent 3d66360c
......@@ -34,11 +34,12 @@ proc initFullLogs*(path: string): LogHandler =
proc logInfo*(handler: LogHandler, msg: string) =
handler.print.log(lvlInfo, msg), msg)
# bright cyan
handler.print.log(lvlInfo, "\e[96m" & msg & "\e[0m"), "\e[96m" & msg & "\e[0m")
proc logErr*(handler: LogHandler, msg: string) =
handler.print.log(lvlError, msg), msg)
# bright magenta
handler.print.log(lvlError, "\e[95m" & msg & "\e[0m"), "\e[95m" & msg & "\e[0m")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment