traefik/pkg/logs/log_test.go

18 lines
294 B
Go
Raw Normal View History

2022-11-21 17:36:05 +00:00
package logs
import (
"os"
"testing"
"time"
"github.com/rs/zerolog"
)
func TestNoLevel(t *testing.T) {
out := zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}
logger := NoLevel(zerolog.New(out).With().Caller().Logger(), zerolog.DebugLevel)
logger.Info().Msg("foo")
}