Can I disable color for just one type of level and still provide a prefix? #450
Unanswered
sheldonhull
asked this question in
Q&A
Replies: 1 comment
-
Hi @sheldonhull, I am not sure if I understand it correctly. When you're not providing a style, or an empty one, to the So are you looking for this?: pterm.Warning.MessageStyle = pterm.NewStyle() func main() {
pterm.Warning.Prefix = pterm.Prefix{Text: "##vso[task.logissue type=warning]", Style: pterm.NewStyle()}
pterm.Warning.MessageStyle = pterm.NewStyle()
pterm.Warning.Println("Hello, World!")
} |
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
-
I'm detecting if CI=true.
Then I want to use a custom logging prefix per the provider, in this case Azure Pipelines.
For the warning and error type I'm using a specific output type required and want to exclude any color as it's not read correctly. In all other cases I'm ok leaving the formatting up as the logs are a better experience with it.
Beta Was this translation helpful? Give feedback.
All reactions