Created
February 13, 2020 13:55
-
-
Save ripienaar/6a9da85b33532c52930ebeb720b09384 to your computer and use it in GitHub Desktop.
20200213_choria_config_blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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