-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd: add --log-level CLI flag #15
Conversation
193f9f6
to
9a36b0e
Compare
Allow specifying the log level directly as the global CLI flag `--log-level`. Signed-off-by: Luiz Aoqui <luizaoqui@loopholelabs.io>
9a36b0e
to
9ff17c8
Compare
Signed-off-by: Luiz Aoqui <luizaoqui@loopholelabs.io>
Signed-off-by: Luiz Aoqui <luizaoqui@loopholelabs.io>
pkg/command/testing.go
Outdated
// Common configuration values. | ||
Format string | ||
Debug bool | ||
NoColor bool `mapstructure:"no-color"` | ||
|
||
// Custom configuration values. | ||
MyConfig string `mapstructure:"my-config"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was using these in a WIP set of config tests that I may push in the future, but they're not exactly necessary in this PR. I can remove them for now, but they also don't really affect anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Format,Debug, NoColor are all fine, but MyConfig seems out of place and might confuse, so let's get rid of that for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, sounds good. Removed in 570b233
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Signed-off-by: Shivansh Vij <shivanshvij@loopholelabs.io>
Signed-off-by: Luiz Aoqui <luizaoqui@loopholelabs.io>
Allow specifying the log level directly as the global CLI flag
--log-level
.Draft for now since it requires loopholelabs/logging#7 and loopholelabs/logging#8.Merged!