The documentation of SiftingAppender mentions that variables are exported.
Variable export It is not enough to have different appender instances; each instance must output to a distinct target resource. To allow such differentiation, within the appender template, the key passed to the discriminator, "userid" in the above example, is exported and becomes a variable. Consequently, this variable can be used to differentiate the actual resource used by a given child appender.
Also note that SiftingAppender allows for a single discriminator instance with only one variable exported. Would exporting multiple variables work for you? |