Skip to content

Add Logging #148

@Nielswps

Description

@Nielswps

The current approach to exceptions and errors in the GUI is to either print the stack trace to the terminal or ignore them in the catch statements. The appropriate thing to do would be to log these errors.

Suggested Approach

Use the java.util.logging, go through all catch bodies, and add relevant information to the log. Beware that some of the exceptions are thrown at times where they might just be handled with a call to showToast().

I would propose using a file for logging, as it seems to be the standard approach, but the name of the file and its location should be considered and tested across all platforms through the generated distributions.

ℹ️ I have marked this issue with good first issue Good for newcomers , not because it will be very isolated. However, what the appropriate information would be for each log entry should be thoroughly considered

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions