14 lines
206 B
Go
14 lines
206 B
Go
package database
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
)
|
|
|
|
type (
|
|
loggerWriter struct{ io.Writer }
|
|
)
|
|
|
|
func (l loggerWriter) Printf(format string, data ...any) {
|
|
fmt.Fprintf(l.Writer, format, data...) //nolint:errcheck
|
|
}
|