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

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. package log
  2. import (
  3. "testing"
  4. )
  5. func TestLog(t *testing.T) {
  6. // Init("error", []string{"stdout", "test.log"})
  7. Info("Test log.Info", " value is ", 10)
  8. Infof("Test log.Infof %d", 10)
  9. Infow("Test log.Infow", "value", 10)
  10. Debugf("Test log.Debugf %d", 10)
  11. Error("Test log.Error", " value is ", 10)
  12. Errorf("Test log.Errorf %d", 10)
  13. Errorw("Test log.Errorw", "value", 10)
  14. Warnf("Test log.Warnf %d", 10)
  15. Warnw("Test log.Warnw", "value", 10)
  16. }