ziflex / lecho

Zerolog wrapper for Echo framework 🍅
MIT License
99 stars 11 forks source link

Add AfterNextSkipper option to the Middleware config #32

Closed michalkurzeja closed 6 months ago

michalkurzeja commented 6 months ago

This adds the ability to skip logging AFTER the next handler runs. It allows the user to selectively log requests based on the handler's response (this is my case, where I don't want to log certain status codes).

I've also added a test case for the built-in Skipper, hope you don't mind.

ziflex commented 6 months ago

Looks good. Thanks for your contribution!