Hi Arsene,
GafferConfigurator (the groovy configurator in logback) does not support
appender-ref elements. Please enter a jira issue so that we can track
this omission.
Best regards,
--
Ceki
http://twitter.com/#!/ceki
On 17.04.2012 09:52, Arsene Lee wrote:
Hi,
I’m using Logback with groovy configuration. I want to use Perf4j with
Logback but I’m having problem with the groovy configuration.
I want to add an AsyncCoalescingStatisticsAppender. The XML confugration
looks like this.
<appender name="CoalescingStatistics"
class="org.perf4j.logback.AsyncCoalescingStatisticsAppender">
<param name="TimeSlice" value="60000"/>
<appender-ref ref="graphExecutionTimes"/>
<appender-ref ref="graphExecutionTPS"/>
<!-- We add the JMX Appender reference onto the CoalescingStatistics -->
<appender-ref ref="perf4jJmxAppender"/>
</appender>
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.
appender("CoalescingStatistics", AsyncCoalescingStatisticsAppender) {
param =
appender-ref =
appender-ref =
appender-ref =
}
Regards,
Arsene
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user