Skip to content

Commit 7c14e8e

Browse files
committed
Merge branch 'fix/version' of github.com:pubgo/funk into fix/version
2 parents 4aee6c0 + 5921f06 commit 7c14e8e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

log/z_log_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ import (
1515
"github.com/pubgo/funk/log/logutil"
1616
)
1717

18+
func TestLogLevel(t *testing.T) {
19+
log.Warn().Msg("test warn")
20+
logger := log.GetLogger().WithLevel(zerolog.ErrorLevel)
21+
logger.Warn().Msg("test warn")
22+
}
23+
1824
func TestWithName(t *testing.T) {
1925
log.GetLogger("log1").
2026
Debug().

0 commit comments

Comments
 (0)