diff options
Diffstat (limited to 'vendor/github.com/denisenkom/go-mssqldb/log.go')
-rw-r--r-- | vendor/github.com/denisenkom/go-mssqldb/log.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/github.com/denisenkom/go-mssqldb/log.go b/vendor/github.com/denisenkom/go-mssqldb/log.go new file mode 100644 index 0000000000..f350aed099 --- /dev/null +++ b/vendor/github.com/denisenkom/go-mssqldb/log.go @@ -0,0 +1,23 @@ +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...) + } +} |