mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-16 15:49:50 +01:00
24 lines
373 B
Go
24 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...)
|
||
|
}
|
||
|
}
|