woodpecker/vendor/github.com/denisenkom/go-mssqldb/log.go
2015-09-29 18:21:17 -07:00

23 lines
373 B
Go

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