I have a struct requesting a standard log.Logger as parameter for log messages. From the zap logger a wrapper is provided by NewStdLogAt:
stdLogAt, err := zap.NewStdLogAt(&s.log, zap.ErrorLevel)
Now I have to use this module in a logrus logger environment. I have not found logrus providing an implementation for log.Logger. What are my possible approaches? Is there an implementation available?
The Logrus documentation seems to suggest creating a new
log.Loggerusing the result of theWriterfunction which Logrus loggers and entries provide.I have inferred this from the "Logger as an io.Writer" section on this page.