traefik/pkg/logs/haystack_test.go
2022-11-21 18:36:05 +01:00

17 lines
288 B
Go

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