mirror of https://github.com/ginuerzh/gost
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
263 B
18 lines
263 B
package gost
|
|
|
|
import "log"
|
|
|
|
func init() {
|
|
log.SetFlags(log.LstdFlags | log.Lshortfile)
|
|
}
|
|
|
|
type logger struct {
|
|
}
|
|
|
|
func (l *logger) Log(v ...interface{}) {
|
|
log.Println(v...)
|
|
}
|
|
|
|
func (l *logger) Logf(format string, v ...interface{}) {
|
|
log.Printf(format, v...)
|
|
}
|
|
|