You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Scott Deboy <sd...@comotivsystems.com> on 2004/07/18 20:08:35 UTC

appender-wide properties

What would it take to support arbitary name/value pairs set as properties on all events generated by an appender, and specified in the appender configuration?  Is this worth doing?  

Here are a few implementation options:

 - adding a new globalParam configuration element
 - adding a 'type' attribute on param which tells us it's a 'global' param, defaulting to 'local'?
- A provide a mechanism for the individual appenders to specify which params it uses, and AppenderSkeleton sets all params provided in the config but not used by the appender as properties on events (in doAppend?)

Thoughts?

Scott