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

SNOW-856228 easy logging parser #924

Merged
merged 11 commits into from
Oct 13, 2023
17 changes: 10 additions & 7 deletions client_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,22 @@ import (
"strings"
)

// log levels for easy logging
const (
Off string = "OFF"
Error string = "ERROR"
Warn string = "WARN"
Info string = "INFO"
Debug string = "DEBUG"
Trace string = "TRACE"
Off string = "OFF" // log level for logging switched off
sfc-gh-pfus marked this conversation as resolved.
Show resolved Hide resolved
sfc-gh-pfus marked this conversation as resolved.
Show resolved Hide resolved
Error string = "ERROR" // error log level
Warn string = "WARN" // warn log level
Info string = "INFO" // info log level
Debug string = "DEBUG" // debug log level
Trace string = "TRACE" // trace log level
)

// ClientConfig properties root
sfc-gh-knozderko marked this conversation as resolved.
Show resolved Hide resolved
type ClientConfig struct {
Common *ClientConfigCommonProps `json:common`
Common *ClientConfigCommonProps `json:"common"`
}

// ClientConfigCommonProps properties from "common" section
type ClientConfigCommonProps struct {
LogLevel *string `json:"log_level"`
LogPath *string `json:"log_path"`
Expand Down
Loading