-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Background
We need to add logging middleware to the backend to log all incoming requests and response pairs. This will help with logging/debugging.
Requirements
- The logging should include the following
- Time of request
- User id making request or anonymous if not signed in
- Request including length
- Response including length
- Time length of response
- Logging should be configurable to be able to disable it for certain endpoints and method combinations
- Log the severity of the error
- Include screenshots of the logs in your PR
Use the loguru for logging
Important Information=
For testing purpose you will need to create a simple endpoint as we don't have any endpoints setup yet. It can take a string and return it with some add info. Something like it takes “Hello World” and returns “Hello World Hello World”. Just so that the response and request are different
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
project: backendBackend tasksBackend tasks