|
@@ -12,6 +12,7 @@ type Options struct {
|
|
tlsCrt string
|
|
tlsCrt string
|
|
tlsKey string
|
|
tlsKey string
|
|
logto string
|
|
logto string
|
|
|
|
+ loglevel string
|
|
}
|
|
}
|
|
|
|
|
|
func parseArgs() *Options {
|
|
func parseArgs() *Options {
|
|
@@ -22,7 +23,7 @@ func parseArgs() *Options {
|
|
tlsCrt := flag.String("tlsCrt", "", "Path to a TLS certificate file")
|
|
tlsCrt := flag.String("tlsCrt", "", "Path to a TLS certificate file")
|
|
tlsKey := flag.String("tlsKey", "", "Path to a TLS key file")
|
|
tlsKey := flag.String("tlsKey", "", "Path to a TLS key file")
|
|
logto := flag.String("log", "stdout", "Write log messages to this file. 'stdout' and 'none' have special meanings")
|
|
logto := flag.String("log", "stdout", "Write log messages to this file. 'stdout' and 'none' have special meanings")
|
|
-
|
|
|
|
|
|
+ loglevel := flag.String("logLevel", "DEBUG", "The level of messages to log. One of: FINEST, FINE, DEBUG, TRACE, INFO, WARNING, ERROR, CRITICAL")
|
|
flag.Parse()
|
|
flag.Parse()
|
|
|
|
|
|
return &Options{
|
|
return &Options{
|
|
@@ -33,5 +34,6 @@ func parseArgs() *Options {
|
|
tlsCrt: *tlsCrt,
|
|
tlsCrt: *tlsCrt,
|
|
tlsKey: *tlsKey,
|
|
tlsKey: *tlsKey,
|
|
logto: *logto,
|
|
logto: *logto,
|
|
|
|
+ loglevel: *loglevel,
|
|
}
|
|
}
|
|
}
|
|
}
|