age
age copied to clipboard
[AGE VIEWER DESKTOP]. Add date and timestamp to log output in logging middleware
[AGE VIEWER DESKTOP] Add date and timestamp to log output in logging middleware Previously, the logging middleware in the application was not including the date and timestamp in the log messages. This made it difficult to determine the exact time of each request and response in the logs.
To improve the logging functionality, I made the following changes:
- Updated the logrus formatter configuration to remove the
DisableTimestamp
field, allowing the date and timestamp to be included in the log output. - Modified the logging middleware to use the
Print
method of logrus instead ofInfo
to ensure that the log messages are displayed in the console output.
Now, when a request is received, the logging middleware logs the request details along with the date and timestamp. Similarly, it logs the response details with the corresponding status and the date and timestamp.
This change enhances the logging capabilities of the application, providing more detailed information and facilitating debugging and monitoring.
@aked21 kindly merge this..
@aked21 Please merge, no conflicts