Start logging to file for debugging

This commit is contained in:
HikariKnight 2023-04-10 13:10:19 +02:00
parent 9204f72e91
commit 7f5a75dd94
4 changed files with 30 additions and 2 deletions

12
internal/logger/logger.go Normal file
View file

@ -0,0 +1,12 @@
package logger
import (
"fmt"
"log"
)
// Formats our log output to \n%s\n\n for readability
func Printf(content string, v ...any) {
content = fmt.Sprintf("\n%s\n\n", content)
log.Printf(content, v...)
}