Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329322

Summary: Log service outputs double entries
Product: [RT] Riena Reporter: Patrick He <platinas.hy>
Component: CoreAssignee: Stefan Liebig <Stefan.Liebig>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Stefan.Liebig
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch to fix this issue none

Description Patrick He CLA 2010-11-03 04:35:11 EDT
Build Identifier: 3.0.0.M2

The log service output double entries in the console when default log config is used.

This is happening because when the LoggerProvider is initializing LoggerMill, the wirer will try to log something, then it called back to get the logger which will again wire the LoggerMill, then the log output is registered twice. 

Reproducible: Always

Steps to Reproduce:
1. Start any Riena Application
2. Watch the output from system console
3.
Comment 1 Patrick He CLA 2010-11-03 04:36:51 EDT
Created attachment 182274 [details]
Patch to fix this issue

Add a flag so that it will not wire itself again when it is wiring.
Comment 2 Stefan Liebig CLA 2010-11-04 03:00:53 EDT
Sadly I could not reproduce that the LoggerMill gets wired twice (debugger, system.out) which would result in adding LogListeners twice and so causing the described effect.
But the existing code (LoggerProvider) could indeed cause a double wiring of the LoggerMill.
So, I applied the patch. 

Thank you, Patrick!