1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-01-17 17:45:03 +02:00
woodpecker/vendor/github.com/denisenkom/go-mssqldb/log.go

24 lines
373 B
Go
Raw Normal View History

2015-09-30 03:21:17 +02:00
package mssql
import (
"log"
)
type Logger log.Logger
func (logger *Logger) Printf(format string, v ...interface{}) {
if logger != nil {
(*log.Logger)(logger).Printf(format, v...)
} else {
log.Printf(format, v...)
}
}
func (logger *Logger) Println(v ...interface{}) {
if logger != nil {
(*log.Logger)(logger).Println(v...)
} else {
log.Println(v...)
}
}