mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 00:00:07 +01:00
16 lines
246 B
Go
16 lines
246 B
Go
|
|
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...)
|
||
|
|
}
|