You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
starlog/starlog_test.go

19 lines
314 B
Go

5 years ago
package starlog
5 years ago
import (
"errors"
"testing"
)
5 years ago
5 years ago
func Test_LOG(t *testing.T) {
SetLogFile("./okk.log")
Debugln("这是一个Debug事项")
Infoln("这是一个通知")
err := errors.New("NBM")
Errorln("你牛逼", err)
LogLevel = 1
Debugln("你看不到我了!")
Panicln("我要下线了")
CloseLog()
5 years ago
}