age icon indicating copy to clipboard operation
age copied to clipboard

[AGE VIEWER DESKTOP]. Add date and timestamp to log output in logging middleware

Open farakh-shahid opened this issue 1 year ago • 1 comments

[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 of Info 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.

farakh-shahid avatar Jun 08 '23 08:06 farakh-shahid

@aked21 kindly merge this..

farakh-shahid avatar Jun 09 '23 18:06 farakh-shahid

@aked21 Please merge, no conflicts

saadjameel avatar Jun 21 '23 06:06 saadjameel