Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update color scheme #89

Merged
merged 3 commits into from
Oct 2, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions chronicles/log_output.nim
Original file line number Diff line number Diff line change
Expand Up @@ -456,14 +456,19 @@ template applyStyle(record, style) =
setStyle(getOutputStream(record.output), {style})

template levelToStyle(lvl: LogLevel): untyped =
# Bright Black is gray
# Light green doesn't display well on white consoles
# Light yellow doesn't display well on white consoles
# Light gyan is darker than green
mratsim marked this conversation as resolved.
Show resolved Hide resolved

case lvl
of TRACE: (fgGreen, true)
of DEBUG: (fgGreen, true)
of TRACE: (fgBlack, true) # Bright Black is gray
of DEBUG: (fgCyan, false)
of INFO: (fgGreen, false)
of NOTICE:(fgYellow, false)
of WARN: (fgYellow, true)
of ERROR: (fgRed, false)
of FATAL: (fgRed, true)
of NOTICE:(fgMagenta, true)
of WARN: (fgYellow, false)
of ERROR: (fgRed, true)
of FATAL: (fgRed, false)
of NONE: (fgWhite, false)

template shortName(lvl: LogLevel): string =
Expand Down