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.
 
 
 

19 lines
450 B

package log
import (
"testing"
)
func TestLog(t *testing.T) {
// Init("error", []string{"stdout", "test.log"})
Info("Test log.Info", " value is ", 10)
Infof("Test log.Infof %d", 10)
Infow("Test log.Infow", "value", 10)
Debugf("Test log.Debugf %d", 10)
Error("Test log.Error", " value is ", 10)
Errorf("Test log.Errorf %d", 10)
Errorw("Test log.Errorw", "value", 10)
Warnf("Test log.Warnf %d", 10)
Warnw("Test log.Warnw", "value", 10)
}