[prev in list] [next in list] [prev in thread] [next in thread]
List: logback-dev
Subject: [logback-dev] [JIRA] Assigned: (LBCORE-252) Logback groovy configuration add support for Perf4j
From: "Ceki Gulcu (JIRA)" <noreply-jira () qos ! ch>
Date: 2012-04-20 15:50:27
Message-ID: 1330753146.1334937027666.JavaMail.ceki () pixie
[Download RAW message or body]
[ 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
logback-dev@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic