go-json-rest icon indicating copy to clipboard operation
go-json-rest copied to clipboard

stdlib log.SetOutput does not work with the *Middleware's

Open thomasf opened this issue 10 years ago • 1 comments

Suggested change: Default to make a function call to log.Print instead of creating new logger if *AccessLogMiddleware.Logger is nil. It seems like it's a very uncommon pattern to create new loggers if there isn't a very specific reason for it.

thomasf avatar Aug 22 '15 22:08 thomasf

That would be an API change, and that won't happen before the next major version for compatibility reason. Filed under "v4 idea"

ant0ine avatar Nov 27 '15 00:11 ant0ine