Feature Description
With the introduction of Logger interface (#2499), it is easier now to plug my own log library into Fiber. With that said, logger middleware still uses fmt.Sprintf().
It would be nice if logger middleware is extended to accept logging via Logger interface. This creates an easier method to have structure log for requests/responses without the need of making a custom external middleware. Judging from #1293 (comment), if we want to keep the current logger middleware as simple as it is, making a new logger middleware would also be reasonable.
Additional Context (optional)
No response
Code Snippet (optional)
No response
Checklist:
Feature Description
With the introduction of
Loggerinterface (#2499), it is easier now to plug my own log library into Fiber. With that said,loggermiddleware still usesfmt.Sprintf().It would be nice if
loggermiddleware is extended to accept logging viaLoggerinterface. This creates an easier method to have structure log for requests/responses without the need of making a custom external middleware. Judging from #1293 (comment), if we want to keep the currentloggermiddleware as simple as it is, making a new logger middleware would also be reasonable.Additional Context (optional)
No response
Code Snippet (optional)
No response
Checklist: