LeKovr / webtail

Tail logfile via websocket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Supports only logr? what about uber/go-zap?

hyorigo opened this issue · comments

commented
// Service holds WebTail service
type Service struct {
	cfg *Config
	hub *Hub
	wg  *sync.WaitGroup
	log logr.Logger
}

logr is an "abstract interface" for logging. As written in logr README:

There are implementations for the following logging libraries:
...
go.uber.org/zap: zapr

webtail cmd uses go-zap exactly, see setup.go