Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fatal color returns warn color #3

@tsuz

Description

@tsuz

When I set the fatal color, it seems to use warn color.

func init() {
...
EnableCustomColors: true,      
CustomLevelColors: &discordrus.LevelColors{
	Debug: 10170623,
	Info:  3581519,
	Warn:  14913035,
	Error: 12651008,
	Panic: 12651008,
	Fatal: 12651008,
},
...
}

func main() {
	log.Error("Hi")
	log.Fatal("Hi")
}

0030-05-10 10 46 26

It seems like this code is causing the issue.

Is this currently being worked on? If not, I can make a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions