mirror of
https://github.com/gogs/gogs.git
synced 2026-02-26 16:20:59 +01:00
Co-authored-by: JSS <jss@unknwon.dev> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
242 B
Go
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...)
|
|
}
|