added simple log rotator
This commit is contained in:
@@ -48,6 +48,7 @@ type Config struct {
|
||||
Datadir string `json:"datadir" yaml:datadir`
|
||||
Hostname string `json:"hostname" yaml:hostname`
|
||||
Hostnames []string `json:"hostnames" yaml:hostnames`
|
||||
LogLimit int64 `json:"logLimit" yaml:logLimit`
|
||||
}
|
||||
|
||||
func NewConfig() *Config {
|
||||
@@ -82,6 +83,7 @@ func NewConfig() *Config {
|
||||
//Certpath: certpath,
|
||||
//Keypath: keypath,
|
||||
Hostnames: make([]string, 0),
|
||||
LogLimit: 1024 * 1024 * 10, // 10 Mb
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user