package log type LogCfg struct { LogConf string `toml:"conf"` LogPath string `toml:"path"` APPName string `toml:"app_name"` DInfo string DError string OutputPaths string ErrorOutputPaths string } type GlobalCfg struct { Logs LogCfg `toml:"logger"` } var cfg LogCfg const ( // ConfigFile is the default configuration file name. ConfigFile = "./conf/cfg.toml" )