This PR adds a UseWithLogging method for middleware, allowing developers to log middleware execution by providing a name. This helps debug and trace middleware flow.
Changes
Added UseWithLogging to Router and Route.
Logs middleware execution using the provided name.
Created a test, TestMiddlewareExecutionWithLogging, to validate the functionality.
What type of PR is this? (check all applicable)
Description
This PR adds a
UseWithLogging
method for middleware, allowing developers to log middleware execution by providing a name. This helps debug and trace middleware flow.Changes
UseWithLogging
toRouter
andRoute
.TestMiddlewareExecutionWithLogging
, to validate the functionality.Related Tickets & Documents
None.
Added/updated tests?
Run verifications and test
make verify
is passingmake test
is passing