In Astra we use ZeroLog for logging, which is a fast and lightweight logging library. By default we have info
level logging configured, but to specify debug
, you can add a configuration option to the New
function
gen := astra.New(...(your options)..., astra.WithLogLevel("debug"))
If you want to use your own logger, you can do so by using the WithCustomLogger
option:
import "github.com/rs/zerolog/log"
logger := log.With().Caller().Logger()
astra.New(...(previous configuration)..., astra.WithCustomLogger(logger))