is there any way to add colors to value of the field produced by zap.any #1370
Unanswered
AkashKumar7902
asked this question in
Q&A
Replies: 1 comment
-
I tried using colors package var HiglightColor = color.New(color.FgYellow).SprintFunc()
t.logger.Info("running user application for", zap.String("test-set", models.HiglightColor(testSet))) but it doesn't escape the characters required to render yellow color in the terminal 2023-10-08T16:21:44+05:30 INFO test/test.go:217 running user application for {"test-set":
F92F
"\u001b[33mtest-set-0\u001b[0m"} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i have a line
is there any way by which i can color the testSet to be orange
Beta Was this translation helpful? Give feedback.
All reactions