What do you all think about error logging in the system. For example how do you think we should handle errors such as them entering an invalid ip address or port number or the database file being corrupt etc. Do we do a System.out.println or show a dialog box or something else?
posted 10 years ago
invalid ip address or port number or the database file being corrupt
If the error is something the user must be informed then use dialog. So for these types of error, you have to use dialog.
Use System.out or java.util.logging if you want to debug your code or want to log the error.