func NewLogCapture() *LogCapture {
	c := &LogCapture{
		entries: make([]string, 0),
	}
	zerologger.Logger = zerologger.Logger.Hook(c)
	return c
}
NewLogCapture captures logs for querying.
package logger
import (
	"fmt"
	"strings"
	"sync"
	"testing"
	"github.com/rs/zerolog"
	zerologger "github.com/rs/zerolog/log"
	"github.com/stretchr/testify/assert"
)
type LogCapture struct {
	mu      sync.Mutex
	entries []string
}