Skip to content

Instantly share code, notes, and snippets.

@ripienaar
Created February 13, 2020 13:55
Show Gist options
  • Save ripienaar/6a9da85b33532c52930ebeb720b09384 to your computer and use it in GitHub Desktop.
Save ripienaar/6a9da85b33532c52930ebeb720b09384 to your computer and use it in GitHub Desktop.
20200213_choria_config_blog
type Config struct {
// LogLevel is the logging level
//
// @doc The lowest level log to add to the logfile
LogLevel string `confkey:"loglevel" default:"info" validate:"enum=debug,info,warn,error,fatal" deprecated:"1" url:"http://example.com"`
// The file to write logs to, when set to an empty string logging will be to the console
LogFile string `confkey:"logfile" type:"path_string" description:"The log file"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment