Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349172 - Don't show ECF Info messages by default
Summary: Don't show ECF Info messages by default
Status: RESOLVED FIXED
Alias: None
Product: ECF
Classification: RT
Component: ecf.core (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: ecf.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-13 06:16 EDT by Alex Blewitt CLA
Modified: 2015-07-24 19:45 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Blewitt CLA 2011-06-13 06:16:42 EDT
The generic ECF logger spits out a lot of messages. Most of these might be useful to those first playing with ECF but they soon run into a barrage of noise which gets in the way of whatever the application's logging is doing.

Can I suggest that we add two properties:

ecf.log.info
ecf.log.debug

where if these are set (or set to a value, like 'true' or 'false'), they enable the output of Info messages or Debug messages from the ECF codebase? Clearly one can insert their own OSGi log service to bind it to the appropriate filtration, but 'filter all info' isn't the same as 'filter all info from ECF'. I'd suggest:

 showInfo = Boolean.parse(System.getProperty("ecf.log.info","false")); 
 showDebug = Boolean.parse(System.getProperty("ecf.log.debug","false"));
 showWarn = Boolean.parse(System.getProperty("ecf.log.warn","true"));
 showError = Boolean.parse(System.getProperty("ecf.log.error","true"));
 
That gives the user the opportunity to say which mechanism they should use. This could be placed in e.g. SystemLogService.doLog.
Comment 1 Scott Lewis CLA 2015-07-24 19:45:10 EDT
New tracing introduced in bug 472661.  Much of the previous RSA logging has been removed in favor of the org.eclipse.ecf.services.remoteserviceadmin.DebugRemoteServiceAdminListener class.