package log type LogCfg struct { LogConf string `toml:"conf"` LogPath string `toml:"path"` LogInfoPath string `toml:"path_info"` LogErrPath string `toml:"path_err"` APPName string `toml:"app_name"` DInfo string DError string OutputPaths string ErrorOutputPaths string } type GlobalCfg struct { Logs LogCfg `toml:"logger"` } const ( // ConfigFile is the default configuration file name. ConfigFile = "./conf/cfg.toml" ) func New(infoPath, errPath string) LogCfg { return LogCfg{ LogInfoPath: infoPath, LogErrPath: errPath, } }