Files
Gogs/internal/dbx/logger.go
ᴊᴏᴇ ᴄʜᴇɴ 36d56d5525 all: rename packages ending with "util" to end with "x" (#8182)
Co-authored-by: JSS <jss@unknwon.dev>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 13:25:19 -05:00

16 lines
242 B
Go

package dbx
import (
"fmt"
"io"
)
// Logger is a wrapper of io.Writer for the GORM's logger.Writer.
type Logger struct {
io.Writer
}
func (l *Logger) Printf(format string, args ...any) {
_, _ = fmt.Fprintf(l.Writer, format, args...)
}