<html>
<head>
<!-- Template generated by Exclaimer Mail Disclaimers on 12:00:47 Tuesday, 23 October 2012 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<p class="bfbfd937-7d4b-4968-a41d-2feecc65a4ca"></p>
<div>Hi Christian,</div>
<div><br>
</div>
<div>Thank you for the suggestion. We have had a pretty good discussion about the eclipse case and came to the conclusion that it would not be a good idea to change the service ranking but instead to create a specific Eclipse logger that can catch all the various
Eclipse log events (I think there are three total) and log them to SLF4J. It could depend on this specific LogService via the service query. The Eclipse LogService could then provide a higher service level, even with a Property that would be settable in the
Eclipse prefs.</div>
<div><br>
</div>
<div>Osgi-over-slf4j has many places to live other than Eclipse so it needs to play nice across the board. Upping the service ranking in code is definitely not nice.</div>
<div><br>
</div>
<div>Matt</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Christian Trutz <<a href="mailto:christian.trutz@belaso.de">christian.trutz@belaso.de</a>><br>
<span style="font-weight:bold">Reply-To: </span>slf4j developers list <<a href="mailto:slf4j-dev@qos.ch">slf4j-dev@qos.ch</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, 23 October, 2012 11:05 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:slf4j-dev@qos.ch">slf4j-dev@qos.ch</a>" <<a href="mailto:slf4j-dev@qos.ch">slf4j-dev@qos.ch</a>><br>
<span style="font-weight:bold">Subject: </span>[slf4j-dev] discussion about LogService ranking in osgi-over-slf4j<br>
</div>
<div><br>
</div>
<div>
<div>Hi osgi-over-slf4j developers,<br>
<br>
I've tested osgi-over-slf4j 1.7.2 with equinox 3.8 and cannot use the SLF4J LogService because<br>
Equinox register also a LogService with default ranking 0. SLF4J gets also ranking 0 (default ranking)<br>
because no service ranking is explicitly set. Is it OK for you if I introduce ranking = 10 for SLF4J LogService?<br>
If want to commit following change:<br>
<br>
Properties props = new Properties();<br>
<b>props.put(Constants.SERVICE_DESCRIPTION, "An SLF4J LogService implementation.");<br>
props.put(Constants.SERVICE_RANKING, 10);</b><br>
ServiceFactory factory = new LogServiceFactory();<br>
bundleContext.registerService(LogService.class.getName(), factory, props);<br>
<br>
to org.slf4j.osgi.logservice.impl.Activator. I also think, that we should made log service ranking configurable ... (via system property for example).<br>
With the above change, I can also see OSGi log messages in Beagle ;-) Thats COOL ...<br>
<br>
Christian<br>
</div>
</div>
</span>
<p></p>
<table border="0" width="100%">
<tbody>
<tr>
<td width="174"><font size="2" face="Calibri"><img align="top" src="http://elasticpath.com/images/ep.gif"></font></td>
<td width="100%"><font size="2"><font face="Calibri">
<table class="bfbfd937-7d4b-4968-a41d-2feecc65a4caTable">
<tbody>
<tr>
<td><span style="font-family:Calibri; font-size:x-small; font-weight: bold; ">Matthew Bishop, Senior Architect</span></td>
</tr>
<tr>
<td><span style="font-family:Calibri; font-size:x-small; ">Phone: 604.408.8078 ext. 101</span></td>
</tr>
<tr>
<td style="text-decoration: none"><span style="font-family:Calibri; font-size:x-small; ">Email:
<a href="mailto:Matthew.Bishop@elasticpath.com" title="Click to send email to Matthew Bishop" target="">
Matthew.Bishop@elasticpath.com</a></span></td>
</tr>
</tbody>
</table>
</font></font></td>
</tr>
<tr>
<font size="2" face="Calibri"></font>
</tr>
</tbody>
</table>
<font size="2"><font face="Calibri"><b>Elastic Path Software, Inc.</b><br>
Web </font></font><a style="TEXT-DECORATION: none" href="http://www.elasticpath.com/"><font size="2" face="Calibri">elasticpath.com
</font></a><font size="2" face="Calibri">| Blog </font><a style="TEXT-DECORATION: none" href="http://www.getelastic.com/"><font size="2" face="Calibri">getelastic.com
</font></a><font size="2" face="Calibri">| Twitter </font><a style="TEXT-DECORATION: none" href="http://www.twitter.com/elasticpath"><font size="2" face="Calibri">twitter.com/elasticpath
</font></a><br>
<font size="2" face="Calibri">Careers </font><a style="TEXT-DECORATION: none" href="http://www.elasticpath.com/jobs"><font size="2" face="Calibri">elasticpath.com/jobs</font></a><font size="2" face="Calibri"> | Community
</font><a style="TEXT-DECORATION: none" href="http://grep.elasticpath.com/"><font size="2" face="Calibri">grep.elasticpath.com
</font></a><br>
<br>
<font color="#736f6e" size="1" face="Calibri">Confidentiality Notice: This message is intended only for the use of the designated addressee(s), and may contain information that is privileged, confidential and exempt from disclosure. Any unauthorized viewing,
disclosure, copying, distribution or use of information contained in this e-mail is prohibited and may be unlawful. If you received this e-mail in error, please reply to the sender immediately to inform us you are not the intended recipient and delete the
email from your computer system. </font>
<p class="bfbfd937-7d4b-4968-a41d-2feecc65a4ca"></p>
<p class="bfbfd937-7d4b-4968-a41d-2feecc65a4ca"> </p>
</body>
</html>