constellation icon indicating copy to clipboard operation
constellation copied to clipboard

Enhancement request - Add more date time information to Logs

Open GammaVel opened this issue 3 years ago • 5 comments

Prerequisites

  • [X] Put an X between the brackets on this line if you have done all of the following:
    • Running the latest version of Constellation
    • Attached the Support Package via Help > Support Package
    • Checked the FAQs: https://github.com/constellation-app/constellation/wiki/FAQ
    • Checked that your issue isn't already filed: https://github.com/constellation-app/constellation/issues
    • Checked that there is not already a module that provides the described functionality: https://github.com/constellation-app/constellation/wiki/Catalogue-of-Repositories

Description

Constellation does not currently display any date /time stamp on each of the audit entries in the Log file that is available under Help > Show logs. As an enhancement request this information would be useful for any troubleshooting/ time validation when there are issues.

Steps to Reproduce

  1. Open graph in Constellation and edit
  2. Go to Help - Show logs and inspect log file
  3. Look for date time stamp - this is shown at the top of the logging session but not repeated.

Expected behaviour: [What you expect to happen] Date Time stamp shown more often in logging file Actual behaviour: Date time is only shown at the start of the log

Reproduces how often: Always

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue. image

GammaVel avatar May 24 '21 03:05 GammaVel

This issue is stale because it has been open for 6 months with no activity. Consider reviewing and taking an action on this issue.

github-actions[bot] avatar Nov 21 '21 01:11 github-actions[bot]

This could be added by default. Adding a formatter to the logger could enable a consistent approach. See the example here: https://examples.javacodegeeks.com/core-java/util/logging/create-custom-formatter-for-logger-handler/

aldebaran30701 avatar Nov 24 '21 00:11 aldebaran30701

Thanks very much @Delphinus8821 for working on this and coming up with a solution. When I created the ticket I was having issues with the inbuilt auto save functionality and I couldn't tell the time that the auto save hadn't worked. With the new solution the logs are showing the date/time of when the log file is opened for all entries. This helps a bit but it would be better if we could get the date/time of when the actual events happened. In saying this, it is great to see more information in the logs and I'm not sure what is technically possible. Thanks!

Screenshot of what I am referring to: image

GammaVel avatar Feb 15 '22 22:02 GammaVel

This issue is stale because it has been open for 6 months with no activity. Consider reviewing and taking an action on this issue.

github-actions[bot] avatar Apr 18 '23 00:04 github-actions[bot]

This issue is stale because it has been open for 6 months with no activity. Consider reviewing and taking an action on this issue.

github-actions[bot] avatar Oct 18 '23 00:10 github-actions[bot]