<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-TW link=blue vlink=purple style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I’m using Logback with groovy configuration. I want to use Perf4j with Logback but I’m having problem with the groovy configuration. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I want to add an AsyncCoalescingStatisticsAppender. The XML confugration looks like this.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal style='text-indent:24.0pt'><span lang=EN-US><appender name="CoalescingStatistics" class="org.perf4j.logback.AsyncCoalescingStatisticsAppender"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <param name="TimeSlice" value="60000"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <appender-ref ref="graphExecutionTimes"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <appender-ref ref="graphExecutionTPS"/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <!-- We add the JMX Appender reference onto the CoalescingStatistics --><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <span style='color:red'><appender-ref ref="perf4jJmxAppender"/></span><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </appender><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I don’t know how to translate it into groovy’s configuration. Especially the the appender-ref ref part. I tried the logback.xml to logback.groovy translator to translate but it generates which I don’t think it is correct.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>appender("CoalescingStatistics", AsyncCoalescingStatisticsAppender) {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> param = <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> appender-ref = <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> appender-ref = <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> appender-ref = <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Arsene<o:p></o:p></span></p></div></body></html>