Apply .gitignore rules

This commit is contained in:
皮蛋13361098506
2025-01-06 16:21:36 +08:00
parent 1b77f62820
commit ccd2c530cf
580 changed files with 69806 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package impl_es
import (
"testing"
"time"
)
func TestLog(t *testing.T) {
urls := []string{"http://10.1.0.71:9101/"}
log, err := NewLogger(urls, "", "", "es_log_test", "les_log_test", nil)
if err != nil {
t.Error("esLog 创建失败")
}
for i := 1; i <= 1000; i++ {
log.DebugLog("Debug test %v", i)
log.InfoLog("Info test %v", i)
log.WarnLog("Warn test %v", i)
log.ErrorLog("Error test %v", i)
log.FatalLog("Fatal test %v", i)
time.Sleep(time.Millisecond * 100)
}
time.Sleep(time.Second * 5)
}