Files
Gogs/internal/dbutil/logger.go

16 lines
246 B
Go
Raw Normal View History

2020-09-06 10:11:08 +08:00
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...)
}