<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have written an SLF4J binding to the Equinox extended log
service, which is an extension of the OSGi logging service, that includes
contextual information, and passes “isLoggable” statements through
to log listeners (readers). The problem I have is supporting extra data
that is not part of the log message. SLF4J does not include MDC or NDC
functionality, so I am not sure of the best way to pass through this kind of
data. A typical use case is session id, which is passed as MDC. When
the log entry is made, the session id is included in the file appender, but
omitted from an appender that sends pages. One solution is to read all
MDC data and pass it through to the OSGi log service, and then recreate it in
the log reader. However, I was wondering if there was a more elegant/less
expensive solution. </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks,</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Paul</span></font></p>
</div>
</body>
</html>