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)
handler.save.log(lvlInfo, msg)
# bright cyan
handler.print.log(lvlInfo, "\e[96m" & msg & "\e[0m")
handler.save.log(lvlInfo, "\e[96m" & msg & "\e[0m")
proc logErr*(handler: LogHandler, msg: string) =
handler.print.log(lvlError, msg)
handler.save.log(lvlError, msg)
# bright magenta
handler.print.log(lvlError, "\e[95m" & msg & "\e[0m")
handler.save.log(lvlError, "\e[95m" & msg & "\e[0m")
Markdown is supported
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