1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-01-08 17:51:57 +00:00

log: Add a symbol for Fatal log entries

Currently there is no symbol for Fatal-level log entries, so they appear
with "-2", which is distracting.

This patch makes the Fatal log entries have their own symbol, ☠.
This commit is contained in:
Alberto Bertogli
2016-11-24 10:18:04 +00:00
parent 75cc038e68
commit 6479138c57
2 changed files with 7 additions and 0 deletions

View File

@@ -44,12 +44,14 @@ var (
type Level int
const (
Fatal = Level(-2)
Error = Level(-1)
Info = Level(0)
Debug = Level(1)
)
var levelToLetter = map[Level]string{
Fatal: "☠",
Error: "E",
Info: "_",
Debug: ".",