moving logging function to common setting up client logging and db

This commit is contained in:
2020-06-15 15:49:53 -04:00
parent 88333417d4
commit 55561d8667
6 changed files with 54 additions and 25 deletions

View File

@@ -5,6 +5,7 @@ import "github.com/deranjer/gvc/common"
//Gvcconfig will be the struct that holds the entire client settings
type Gvcconfig struct {
Version string `toml:"version"`
LogLevel int `toml:"loglevel"` // Panic: 5, Fatal: 4, Error: 3, Warn: 2, Info: 1, debug: 0, trace: -1
RootPath string `toml:"rootpath"`
RepoName string `toml:"reponame"`
Remotes []Remote `toml:"remote"` //The remote servers for the repo