]> 127.0.0.1 Git - part/.git/commitdiff
11
authorqydysky <qydysky@foxmail.com>
Tue, 28 Jul 2020 20:50:30 +0000 (04:50 +0800)
committerqydysky <qydysky@foxmail.com>
Tue, 28 Jul 2020 20:50:30 +0000 (04:50 +0800)
Log.go

diff --git a/Log.go b/Log.go
index e3987dc63b9b756a122bd8cccdd9e47c6f1d1c18..cc9473c9c0bc06e8d8a12bcbbe598fae0c322d5c 100644 (file)
--- a/Log.go
+++ b/Log.go
@@ -49,19 +49,19 @@ func (*logl) New(fileP string) {
        isinit = true
 }
 
-func (*logl) T(l ...string){
+func (*logl) T(l ...interface{}){
        if !isinit {log.Println("TRACE:",l);return}
        tracef.Println(l)
 }
-func (*logl) I(l ...string){
+func (*logl) I(l ...interface{}){
        if !isinit {log.Println("INFO:",l);return}
        infof.Println(l)
 }
-func (*logl) W(l ...string){
+func (*logl) W(l ...interface{}){
        if !isinit {log.Println("WARNING:",l);return}
        warningf.Println(l)
 }
-func (*logl) E(l ...string){
+func (*logl) E(l ...interface{}){
        if !isinit {log.Println("ERROR:",l);return}
        errorf.Println(l)
 }
\ No newline at end of file