Logger Middleware
Logger middleware logs incoming request details.
Example Output
Each log contains a timestamp, status code, method, path, and response time.
To disable colors in the log output, set the NO_COLOR
environment variable.
Custom Function
By default, the logger middleware uses print
to log messages. You can provide a custom function to the logger middleware to log messages.