<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">Hi,</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">I have developed a custom appender for logback and would like to configure it with a generic set of Properties that I can pass on to the underlying libraries. Rather than create a Getter
 and Setter for each property that the underlying library uses, I would like the configuration to read the *names* of the properties out of the logback configuration file.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">Instead of this:</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><configuration></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">    <appender name="theCustomAppender" class="domian.TheCustomAppender"></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">        <getterSetterProperty>value</<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">getterSetter</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">Property</span>></span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">    </appender></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"></configuration></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px"><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">I would like to write something like this:</p>
<p style="font-size:16px; font-family:Calibri,Arial,Helvetica,sans-serif"><configuration></p>
<p style="font-size:16px; font-family:Calibri,Arial,Helvetica,sans-serif">    <appender name="theCustomAppender" class="domian.TheCustomAppender"></p>
<p style="font-size:16px; font-family:Calibri,Arial,Helvetica,sans-serif">        <properties class="java.util.Properties"></p>
<p style="font-size:16px; font-family:Calibri,Arial,Helvetica,sans-serif">            <property name="thisPropertyName" value="value" /></p>
<p style="font-size:16px; font-family:Calibri,Arial,Helvetica,sans-serif"></p>
<p style="font-size:16px; font-family:Calibri,Arial,Helvetica,sans-serif">        </<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">properties</span>></p>
<p style="font-size:16px; font-family:Calibri,Arial,Helvetica,sans-serif">    </appender></p>
<p style="font-size:16px; font-family:Calibri,Arial,Helvetica,sans-serif"></configuration></p>
<p style="font-size:16px; font-family:Calibri,Arial,Helvetica,sans-serif"><br>
</p>
Does the Joran Configurator have the capability to parse a configuration file, generate a Properties object, and then hand it off to the Appender?</div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
I have looked around and have not been able to identify any guidance for this use case. I have discovered the nested element capability and the "class" attribute, but have not been able to build a mapped structure. </div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<br>
</div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
The north-west wind does feel a bit chilly, right now... :-)</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
Thanks,</div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
John Page</div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
</div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>