Remove logger and replace it with a library

This commit is contained in:
2025-04-18 12:47:47 +02:00
parent 58586395fb
commit 75bf449bed
13 changed files with 108 additions and 799 deletions

View File

@@ -13,7 +13,7 @@ import (
"github.com/go-git/go-git/v5"
"cook/logger"
logger "git.site.quack-lab.dev/dave/cylogger"
)
type GlobalStats struct {
@@ -259,7 +259,7 @@ func RunOtherCommands(file string, fileDataStr string, association utils.FileCom
modifications := []utils.ReplaceCommand{}
for _, command := range association.Commands {
// Use command-specific logger if available, otherwise fall back to default logger
cmdLogger := logger.DefaultLogger
cmdLogger := logger.Default
if cmdLog, ok := commandLoggers[command.Name]; ok {
cmdLogger = cmdLog
}