<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Your configuration below indicates you have extended the JMSQueueAppender or have written your own - i.e. class=com.whatever.**</span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">JMSQueueAppender.  That class needs:</span><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<br></div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Layout layout;</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<br></div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">public void setLayout(Layout layout) {</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
  this.layout = layout;</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">}</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<br></div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">public Layout getLayout() {</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
  return this.layout;</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">}</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<br></div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">In your append method you then need to call layout.doLayout(event) to get the String result that you want to send.</div>
<div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br></div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><font color="#888888">Ralph</font></div>
<br><div class="gmail_quote">On Thu, Nov 17, 2011 at 12:53 PM, Steve Cohen <span dir="ltr"><<a href="mailto:scohen@javactivity.org">scohen@javactivity.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Eh, how does that work?<br>
How do you tell it what layout to use?<div class="im"><br>
<br>
<br>
On 11/17/2011 02:12 PM, ralph.goers @<a href="http://dslextreme.com" target="_blank">dslextreme.com</a> wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
The JMS and Socket appenders in Logback do not allow you to specify an<br>
encoder. If you want to do that you need to add a getter and setter for<br>
that to your version of the JMSQueueAppender. However, if you really want a<br>
String instead of a byte array you can just as easily use a Layout instead<br>
of an encoder.<br>
<br>
Ralph<br>
<br>
<br>
On Thu, Nov 17, 2011 at 11:33 AM, Steve Cohen<<a href="mailto:scohen@javactivity.org" target="_blank">scohen@javactivity.org</a>><u></u>wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
We have this configuration<br>
<br>
<configuration><br>
...<br>
<conversionRule conversionWord="ourcaller"<br></div>
        converterClass="com.whatever.*<u></u>*CallerDataConverter" /><br>
<br>
<appender name="jms" class="com.whatever.**<u></u>JMSQueueAppender"><div class="im"><br>
<encoder><br>
<pattern>%d %-5p [%t] %ourcaller{1} - %m%n</pattern><br>
</encoder><br>
</appender><br>
<br></div>
<appender name="stdout" class="ch.qos.logback.core.**<u></u>ConsoleAppender"><div class="im"><br>
<encoder><br>
<pattern>%d %-5p [%t] %ourcaller{1} %n - %m%n</pattern><br>
</encoder><br>
</appender><br>
...<br></div>
==============================<u></u>**========<div class="im"><br>
<br>
This configuration produces these errors:<br>
<br></div>
3:21:43,935 |-ERROR in ch.qos.logback.core.joran.spi.<u></u>**Interpreter@18:14<div class="im"><br>
- no applicable action for [encoder], current pattern is<br></div>
[[configuration][appender][**<u></u>encoder]]<br>
13:21:43,935 |-ERROR in ch.qos.logback.core.joran.spi.<u></u>**Interpreter@19:16<div class="im"><br>
- no applicable action for [pattern], current pattern is<br></div>
[[configuration][appender][**<u></u>encoder][pattern]]<div class="im"><br>
<br>
The line numbers here refer to the JMSQueueAppender.  The console appender<br>
which is structured basically identically has no such problem.<br>
<br>
What is Joran trying to tell me here.  It appears to be telling me the<br>
pattern I am using, but does not tell me why it finds this objectionable.<br>
<br>
Thanks.<br></div>
______________________________<u></u>**_________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/**listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>**listinfo/logback-user</a><<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http:/<u></u>/mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a>><br>

<br>
</blockquote><div class="im">
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
</div></blockquote><div><div></div><div class="h5">
<br>
______________________________<u></u>_________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
</div></div></blockquote></div><br>