| Summary: | [Discovery][ZooDiscovery] allow silencing of zookeeper startup, publish, shutdown | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] ECF | Reporter: | Scott Lewis <slewis> | ||||
| Component: | ecf.discovery | Assignee: | Wim Jongman <wim.jongman> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | minor | ||||||
| Priority: | P3 | ||||||
| Version: | 3.5.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Scott Lewis
If an instance of the OSGi logservice is available, we use that. Otherwise we output to syso. Does the logservice you mention register itself as a service? With regards to zookeeper's internal logging: zookeeper uses log4j. It hooks into the users log4j environment. I am not at all familiar with all the stuff you need to do to get log4j up and running. I want to leave this up to the user and accept the WARN messages during ZK init. (In reply to comment #1) > If an instance of the OSGi logservice is available, we use that. Otherwise we > output to syso. Does the logservice you mention register itself as a service? No, ECF doesn't register org.eclipse.ecf.util.SystemLogService...since in environments like Eclipse ECF is not in a position to do that. Perhaps rather than using System.out directly in zookeeper if no OSGi logservice is available, perhaps just using the ECF equivalent...which is org.eclipse.ecf.util.SystemLogService. > > With regards to zookeeper's internal logging: zookeeper uses log4j. It hooks > into the users log4j environment. I am not at all familiar with all the stuff > you need to do to get log4j up and running. I want to leave this up to the user > and accept the WARN messages during ZK init. I think there is some way to configure log4j to avoid these messages by default...i.e. for the zookeeper provider to configure log4j in the absence of other config, but I can't remember what it is. log4j bug moved to 337667 Created attachment 189366 [details]
mylyn/context/zip
Replaced syso with ECF's native logger. Changes pushed to master. FIXED. |