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

Add configuration flag to enable JSON logging #105

Merged
merged 1 commit into from
Feb 16, 2021

Conversation

edevil
Copy link
Contributor

@edevil edevil commented Feb 11, 2021

Addresses #82

@lornasong lornasong linked an issue Feb 11, 2021 that may be closed by this pull request
Copy link
Member

@lornasong lornasong left a comment

Choose a reason for hiding this comment

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

This looks great @edevil ! Thanks for adding this feature

@@ -449,6 +451,8 @@ func convertTelemetry(telemetry Telemetry) (lib.TelemetryConfig, error) {
// set by the practitioner
func MergeConfig(dst *Config, src *HumanConfig) error {
src.LogLevel.Merge(&dst.LogLevel)
src.LogJSON.Merge(&dst.LogJSON)
src.EnableSyslog.Merge(&dst.EnableSyslog)
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for catching EnableSyslog and adding it!

@lornasong lornasong merged commit 1944ed8 into hashicorp:master Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Structured logging support
2 participants