Search code examples
eclipseloggingrcpe4pde

Logback or Eclipse logger in Eclipse RCP based products


From Eclipse experts I want to know whether it is good to use log framework org.eclipse.e4.core.services.log.Logger provided by Eclipse RCP in RCP based products or shall we use logback in Eclipse RCP? I am using Eclipse E4 for developing. The problem I see with Eclipse logger is it gives warning "Discouraged access: The type 'Logger' is not API". Which one is preferred way of logging in Eclipse RCP development?


Solution

  • Logger is OK despite the discouraged access warning. There are still a number of e4 APIs which have not been completely finalized and these have this warning.

    You may also find StatusReporter useful. This can do logging and show error dialogs.