Zo doen wijdat in oost

This commit is contained in:
2026-10-16 07:20:44 +02:00
parent 25d9cb1c7d
commit 6f80a820da
229 changed files with 23894 additions and 74 deletions
+26
View File
@@ -0,0 +1,26 @@
package main
import (
"fmt"
"io"
"log"
)
type Logger struct {
out *log.Logger
verbose bool
}
func NewLogger(w io.Writer, verbose bool) *Logger {
return &Logger{out: log.New(w, "devplace-node ", log.LstdFlags|log.LUTC), verbose: verbose}
}
func (l *Logger) Printf(format string, args ...any) {
l.out.Output(2, fmt.Sprintf(format, args...))
}
func (l *Logger) Debugf(format string, args ...any) {
if l.verbose {
l.out.Output(2, fmt.Sprintf(format, args...))
}
}