Skip to content

bug: nested group name was wrong in Err attribute #44

@missedone

Description

@missedone
	logger = logger.WithGroup("group0").With("reqId", "xxxx-xxx-xxxx-xxxx")
	logger.WithGroup("group1").Debug("Debug msg", "foo", "bar", "x", "y")
	logger.Info("This is a info msg", "foo", 1, "bar", true)
	logger.Warn("This is a warn msg", "foo", map[string]string{"aa": "bb", "cc": "dd"}, "bar", []string{"a", "b", "c"}, "null response", nil)
	logger.Error("This is a error msg", tint.Err(errors.New("i'm an error")))

the expected output should be group0.group1.err
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions