Implement a Root-Level Request Logger Middleware

Here is the solution, leave your like and comment if it works for you:

Solution code redacted by moderator

Use template literals to concatenate req.method, req.path, -, req.ip and as there is not any route path specified, the function will be activated always.

Hi, sharing working solutions is not considered best practice here.

All right, thnak you so much.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.