Skip to content

Commit 4a999ba

Browse files
committed
Add LogExportPath field to ClientOptions struct and update logger.BuildLogger function
1 parent 16c7475 commit 4a999ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

httpclient/client_configuration.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ func LoadConfigFromEnv(config *ClientConfig) (*ClientConfig, error) {
104104
config.ClientOptions.LogConsoleSeparator = getEnvOrDefault("LOG_CONSOLE_SEPARATOR", config.ClientOptions.LogConsoleSeparator)
105105
log.Printf("LogConsoleSeparator env value found and set to: %s", config.ClientOptions.LogConsoleSeparator)
106106

107+
config.ClientOptions.LogExportPath = getEnvOrDefault("LOG_EXPORT_PATH", config.ClientOptions.LogExportPath)
108+
log.Printf("LogExportPath env value found and set to: %s", config.ClientOptions.LogExportPath)
109+
107110
config.ClientOptions.HideSensitiveData = parseBool(getEnvOrDefault("HIDE_SENSITIVE_DATA", strconv.FormatBool(config.ClientOptions.HideSensitiveData)))
108111
log.Printf("HideSensitiveData env value found and set to: %t", config.ClientOptions.HideSensitiveData)
109112

0 commit comments

Comments
 (0)