[logback-user] decorating an Appender with additional behavior ?

Andreas Andreakis andreas at refinedlabs.com
Wed Feb 16 11:49:10 CET 2011


Hello,


which is the preferred way to decorate an Appender with additional behavior ?
Optimally, the new behavior should be applicable to any Appender.

As an example consider the Cyclic Queue behavior of the SMPTAppender. A CyclicQueueAppender could implement this feature and delegate calls to a referenced concrete Appender, such that the feature can be utilized in other (non-SMTP) scenarios as well.

Also  (if currently possible) the Decorator should be configured declaratively within a configuration file.

kind regards,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110216/0682d88b/attachment.html>


More information about the Logback-user mailing list