]> 127.0.0.1 Git - part/.git/commitdiff
97
authorqydysky <qydysky@foxmail.com>
Mon, 28 Dec 2020 15:33:42 +0000 (23:33 +0800)
committerqydysky <qydysky@foxmail.com>
Mon, 28 Dec 2020 15:33:42 +0000 (23:33 +0800)
log/Log.go

index 521eae3a2a8e4125863a312b1e058acb0152f5cf..072ec94f58c728b36002fee0fa3d58058f9905e5 100644 (file)
@@ -94,6 +94,8 @@ func (I *Log_interface) Level(log map[string]struct{}) (O *Log_interface) {
 //Open 日志不显示
 func (I *Log_interface) Log_show_control(show bool) (O *Log_interface) {
     O=I
+    //
+    O.Block(100)
     O.Stdout = show
     return
 }
@@ -101,6 +103,8 @@ func (I *Log_interface) Log_show_control(show bool) (O *Log_interface) {
 //Open 日志输出至文件
 func (I *Log_interface) Log_to_file(fileP string) (O *Log_interface) {
     O=I
+    //
+    O.Block(100)
     O.File = fileP
     if O.File != `` {p.File().NewPath(O.File)}
     return