feat add log date

This commit is contained in:
Urko 2023-07-02 23:13:30 +02:00
parent bbc94e0375
commit bf700eeeb3
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ func main() {
}
config := cfg.NewConfig(envFile)
log.SetFlags(log.Ldate)
log.SetFlags(log.Lmicroseconds)
if config.LogFile {
logFileName := fmt.Sprintf("%s.txt", time.Now().Format(strings.ReplaceAll(time.RFC1123Z, ":", "_")))