github.com/thanos-io/thanos@v0.32.5/pkg/logging/logger_test.go (about) 1 // Copyright (c) The Thanos Authors. 2 // Licensed under the Apache License 2.0. 3 4 package logging 5 6 import ( 7 "testing" 8 9 "github.com/go-kit/log/level" 10 ) 11 12 func BenchmarkDisallowedLogLevels(b *testing.B) { 13 logger := NewLogger("warn", "logfmt", "benchmark") 14 15 for i := 0; i < b.N; i++ { 16 level.Info(logger).Log("hello", "world", "number", i) 17 level.Debug(logger).Log("hello", "world", "number", i) 18 } 19 }