mirror of https://github.com/sirupsen/logrus.git
Change DebugLevel color to gray
This commit is contained in:
parent
2ec723cd5b
commit
9c9013ac4f
|
@ -15,6 +15,7 @@ const (
|
|||
green = 32
|
||||
yellow = 33
|
||||
blue = 34
|
||||
gray = 37
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -75,6 +76,8 @@ func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
|
|||
func printColored(b *bytes.Buffer, entry *Entry, keys []string) {
|
||||
var levelColor int
|
||||
switch entry.Level {
|
||||
case DebugLevel:
|
||||
levelColor = gray
|
||||
case WarnLevel:
|
||||
levelColor = yellow
|
||||
case ErrorLevel, FatalLevel, PanicLevel:
|
||||
|
|
Loading…
Reference in New Issue