Start logging to file for debugging
This commit is contained in:
parent
9204f72e91
commit
7f5a75dd94
4 changed files with 30 additions and 2 deletions
12
internal/logger/logger.go
Normal file
12
internal/logger/logger.go
Normal 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...)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue