You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// infoLogger writes to stdout, initialized if flag is set.
65
+
infoLogger*slog.Logger
66
+
// errorLogger writes to stderr, initialized if flag is set.
67
+
errorLogger*slog.Logger
68
+
)
69
+
62
70
funcmain() {
63
71
config:=Config{}
64
72
flag.IntVar(&config.qps, "qps", 10, "The number of DNS queries per second to issue")
@@ -68,8 +76,15 @@ func main() {
68
76
flag.StringVar(&config.hostnameFile, "inputfile", "", "Path to the file containing hostnames to lookup. Hostnames should be newline-separated.")
69
77
flag.BoolVar(&config.queryClusterNames, "query-cluster-names", false, "Indicates whether the query names should be the service names in the cluster.")
70
78
flag.BoolVar(&config.logQueries, "log-queries", false, "Indicates whether each query should be logged.")
71
-
79
+
flag.BoolVar(&config.enableLatencyLogging, "enable-latency-logging", false, "Indicate whether to enable structured logging for each DNS lookup latency.")
80
+
flag.BoolVar(&config.enableErrorLogging, "enable-error-logging", false, "Indicate whether to enable structured logging for each DNS lookup errors.")
0 commit comments