More than one filter in Appender

is it possible to support more than one filter in Appender...? -- View this message in context: http://www.nabble.com/More-than-one-filter-in-Appender-tp22862398p22862398.h... Sent from the Logback Dev mailing list archive at Nabble.com.

Sure. Just declare multiple filters. Example: <appender class="..."> <filter class="..."/> </filter> <filter class="..."/> </filter> </appender> If you look at the AppenderBase base class in logback-core [1], there is a method called addFilter(Filter). Joran, logback's configuration framework, can deal with getters and setters as well as "adder" methods. See the section entitled "Collection of Properties" in the logback manual [2]. Essentially, the "adder" convention is useful for dealing with a collection of properties, such as filters, instead of just a single property. [1] http://logback.qos.ch/xref/ch/qos/logback/core/AppenderBase.html [2] http://logback.qos.ch/manual/onJoran.html HTH, boss134 wrote:
is it possible to support more than one filter in Appender...?
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch

Thank you sir. i understood the concept.... -- View this message in context: http://www.nabble.com/More-than-one-filter-in-Appender-tp22862398p22863921.h... Sent from the Logback Dev mailing list archive at Nabble.com.
participants (2)
-
boss134
-
Ceki Gulcu