aboutsummaryrefslogtreecommitdiff
path: root/internal/dbutil/logger.go
blob: c189949eae1d98f1ccb672dc9ca8d5de4deabd89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

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...)
}