Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a logging mechanism #30

Open
MartinLoeper opened this issue Jul 13, 2017 · 3 comments
Open

Use a logging mechanism #30

MartinLoeper opened this issue Jul 13, 2017 · 3 comments

Comments

@MartinLoeper
Copy link
Owner

MartinLoeper commented Jul 13, 2017

Currently the log output is written to the console via System.out.
This is discouraged. We should use a proper logging mechanism.

Which one does KAMP use?

@MartinLoeper
Copy link
Owner Author

I suggest using the Eclipse Platform logging API: https://wiki.eclipse.org/FAQ_How_do_I_use_the_platform_logging_facility%3F

@MartinLoeper
Copy link
Owner Author

During development, you can browse and manipulate the platform log file using the PDE Error Log view (Window > Show View > Other > PDE Runtime > Error Log). You can also have the log file mirrored in the Java console by starting Eclipse with the -consoleLog command-line argument.

@MartinLoeper
Copy link
Owner Author

Please do also note that we have to change the way errors are show to the user according to: https://wiki.eclipse.org/Platform_UI_Error_Handling.

The old code ErrorDialog.openError(...); or MessageDialog.openError(...); should be refactored into StatusManager.getManager().handle(..., StatusManager.SHOW).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant