Commit b260146b authored by rui.zheng's avatar rui.zheng

fix log

parent f588c76e
package gost
import (
"fmt"
"log"
)
......@@ -12,11 +13,11 @@ type LogLogger struct {
}
func (l *LogLogger) Log(v ...interface{}) {
log.Println(v...)
log.Output(3, fmt.Sprintln(v...))
}
func (l *LogLogger) Logf(format string, v ...interface{}) {
log.Printf(format, v...)
log.Output(3, fmt.Sprintf(format, v...))
}
type NopLogger struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment