[ 
http://jira.qos.ch/browse/LBCORE-252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ceki Gulcu reassigned LBCORE-252:
---------------------------------

    Assignee: Ceki Gulcu  (was: Logback dev list)

> Logback groovy configuration add support for Perf4j 
> ----------------------------------------------------
>
>                 Key: LBCORE-252
>                 URL: http://jira.qos.ch/browse/LBCORE-252
>             Project: logback-core
>          Issue Type: Improvement
>          Components: Appender
>            Reporter: Muyen Lee
>            Assignee: Ceki Gulcu
>            Priority: Minor
>
> 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>
> logback.groovy's appender function doesn't support <appender-ref 
> ref="perf4jJmxAppender"/>
> The workaround is to write groovy directly
> JmxAttributeStatisticsAppender jmxAppender = new 
> JmxAttributeStatisticsAppender()
> jmxAppender.name = "Per4j"
> jmxAppender.context = context
> jmxAppender.tagNamesToExpose="tag1, tag2"
> appenderList.add(jmxAppender)
> AsyncCoalescingStatisticsAppender coalAppender = new 
> AsyncCoalescingStatisticsAppender()
> // in millisecond
> coalAppender.timeSlice=10000
> coalAppender.name = "CoalescingStatistics"
> coalAppender.context = context
> coalAppender.addAppender(jmxAppender)
> appenderList.add(coalAppender)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
logback-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-dev

Reply via email to