Fix log file name format and remove old debug prints

This commit is contained in:
Tulir Asokan 2018-09-20 01:47:24 +03:00
parent 2a0106da26
commit a77084b12e
6 changed files with 5 additions and 8 deletions

View file

@ -82,7 +82,7 @@ func (lc *LogConfig) MarshalYAML() (interface{}, error) {
func CreateLogConfig() LogConfig {
return LogConfig{
Directory: "./logs",
FileNameFormat: "%[1]s-%02[2]d.log",
FileNameFormat: "{{.Date}}-{{.Index}}.log",
TimestampFormat: "Jan _2, 2006 15:04:05",
FileMode: 0600,
FileDateFormat: "2006-01-02",