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

21 lines
344 B

package zlog
import (
"testing"
"go.uber.org/zap"
)
func TestLog(t *testing.T) {
// Init(WithLogFile(zapcore.ErrorLevel, func(l *lumberjack.Logger) {
// l.Filename = "./logs/sig_error.log"
// }))
Init()
defer Sync()
Info("hello 1info...")
Errorf("hell error...%d", 1803)
zLogger.Error("error日志", zap.Stack("stacktrace"))
}