aboutsummaryrefslogtreecommitdiff
path: root/internal/dbutil/logger.go
blob: 66426ae7cdb78c97e1248f6a4875dbf59d3dfd6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package dbutil

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 ...interface{}) {
	fmt.Fprintf(l.Writer, format, args...)
}