Commit 5cf8661e by wang

……

parent 9c318fad
Showing with 0 additions and 48 deletions
......@@ -3,9 +3,7 @@ package main
import (
"flag"
"fmt"
logger "github.com/ichunt2019/log"
"go_supplier_task/boot"
syncLog "go_supplier_task/pkg/logger/sync"
"go_supplier_task/service"
)
......@@ -71,48 +69,3 @@ func main() {
}
func logTest() {
//logger.SyncInsert("abc_d","djflsdfj",logger.LogLevelFatal)
//logger.SyncInsert("abc_d","abc")
//logger.SyncInsert("abc_d","abc123123")
//time.Sleep(time.Second*2)
syncLog.SyncInsertLog("sdfsdfsdf","def",syncLog.LogLevelFatal)
//log.SyncInsert("dfsdf","def")
//log.SyncInsert("的火箭分离事件的发生地发","def")
//test2()
//test2()
//logTest2()
//logTest2()
}
func logTest2() {
syncLog.SyncInsertLog("a_b","def",syncLog.LogLevelFatal)
/*log.SyncInsert("ws_a","豆腐干大范甘迪")
log.SyncInsert("ws_a","手动阀手动阀")
log.SyncInsert("ws_a","手动阀手动阀打发士大夫")*/
//log.SyncInsert("ws_a","dfsdf")
//log.SyncInsert("ws_a","dfsdf")
//log.SyncInsert("ws_a","dfsdf")
}
func test2() {
logConfig := make(map[string]string)
logConfig["log_path"] = "logs/test1"
logConfig["log_chan_size"] = "1"
logConfig["log_name"] = "xxxxx"
logConfig["open_sync"] = "1"
log ,_:=logger.InitLogger("file",logConfig)
log.Init()
/*for i := 0; i < 500; i++ {
d:=fmt.Sprintf("%d",i)
log.Info(d)
}*/
log.Info("dfsdf")
log.SyncWait()
}
\ No newline at end of file
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 sign in to comment