From c50ba09949e085113a9d46d8e693b4f1388cb950 Mon Sep 17 00:00:00 2001 From: fangdingjun Date: Tue, 30 Oct 2018 11:06:11 +0800 Subject: [PATCH] log library updated --- main.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/main.go b/main.go index 6c2f0e0..72c1cfb 100644 --- a/main.go +++ b/main.go @@ -6,8 +6,6 @@ import ( "os" "github.com/fangdingjun/go-log" - "github.com/fangdingjun/go-log/formatters" - "github.com/fangdingjun/go-log/writers" ) func main() { @@ -26,7 +24,7 @@ func main() { flag.Parse() if logfile != "" { - log.Default.Out = &writers.FixedSizeFileWriter{ + log.Default.Out = &log.FixedSizeFileWriter{ MaxCount: logFileCount, Name: logfile, MaxSize: logFileSize * 1024 * 1024, @@ -42,9 +40,6 @@ func main() { log.Default.Level = lv } - log.Default.Formatter = &formatters.TextFormatter{ - TimeFormat: "2006-01-02 15:04:05.000"} - cfg, err := loadConfig(configfile) if err != nil { log.Fatal(err)