You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
401 B

3 years ago
  1. package log
  2. type LogCfg struct {
  3. LogConf string `toml:"conf"`
  4. LogPath string `toml:"path"`
  5. APPName string `toml:"app_name"`
  6. DInfo string
  7. DError string
  8. OutputPaths string
  9. ErrorOutputPaths string
  10. }
  11. type GlobalCfg struct {
  12. Logs LogCfg `toml:"logger"`
  13. }
  14. var cfg LogCfg
  15. const (
  16. // ConfigFile is the default configuration file name.
  17. ConfigFile = "./conf/cfg.toml"
  18. )