traefik/pkg/logs/hclog_test.go
2022-11-23 11:42:04 +01:00

17 lines
298 B
Go

package logs
import (
"os"
"testing"
"time"
"github.com/rs/zerolog"
)
func TestNewRetryableHTTPLogger(t *testing.T) {
out := zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}
logger := NewRetryableHTTPLogger(zerolog.New(out).With().Caller().Logger())
logger.Info("foo")
}