go-json-rest
go-json-rest copied to clipboard
stdlib log.SetOutput does not work with the *Middleware's
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.
That would be an API change, and that won't happen before the next major version for compatibility reason. Filed under "v4 idea"