[logback-user] decorating an Appender with additional behavior ?
andreas at refinedlabs.com
Wed Feb 16 11:49:10 CET 2011
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Logback-user