Skip to content
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

Make logging configurable #212

Merged
merged 3 commits into from
Aug 21, 2019
Merged

Conversation

ritazh
Copy link
Member

@ritazh ritazh commented Aug 20, 2019

Signed-off-by: Rita Zhang rita.z.zhang@gmail.com

fixes #210

NOTE: logf.ZapLogger(false) sets the log level at INFO level.

@ritazh ritazh requested a review from maxsmythe August 20, 2019 01:51
cmd/manager/main.go Outdated Show resolved Hide resolved
cmd/manager/main.go Outdated Show resolved Hide resolved
cmd/manager/main.go Show resolved Hide resolved
Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

)

var (
logLevel = flag.String("log-level", "INFO", "Minimum log level")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List all the options in the help text.

@maxsmythe
Copy link
Contributor

actually, one doc nit

@ritazh ritazh requested a review from maxsmythe August 21, 2019 18:24
@maxsmythe
Copy link
Contributor

LGTM

ritazh added 3 commits August 21, 2019 14:54
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
@ritazh ritazh merged commit b48d78d into open-policy-agent:master Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Console log and log level configuration
2 participants