Skip to content

Commit f6e2d15

Browse files
committed
test: add logger test
1 parent 7065908 commit f6e2d15

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

logger/logger_test.go

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package logger
2+
3+
import (
4+
"context"
5+
"log"
6+
"os"
7+
"testing"
8+
)
9+
10+
func TestLogger(t *testing.T) {
11+
l := NewLogger(log.New(os.Stdout, "\r\n", log.LstdFlags), Info, true)
12+
for i := 0; i < 4; i++ {
13+
l.Info(context.Background(), "request url: %d", i)
14+
}
15+
}

0 commit comments

Comments
 (0)