Rename struct

This commit is contained in:
Ben Sarmiento
2024-04-26 14:28:19 +02:00
parent 7f944d564b
commit 755b50c82f
3 changed files with 7 additions and 5 deletions

View File

@@ -27,7 +27,8 @@ func MainApp(configPath string) {
utils.EnsureDirExists("logs") // Ensure the logs directory exists
logPath := fmt.Sprintf("logs/zurg-%s.log", time.Now().Format(time.DateOnly))
log := logutil.NewLogger(logPath)
zurglog := log.Named("zurg")
zurglog := log.Named("zurg") // logger for this main function
zurglog.Debugf("PID: %d", os.Getpid())
zurglog.Infof("Version: %s", version.GetVersion())