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 Mikael Ståldal <mi...@magine.com> on 2017/01/09 08:54:53 UTC
Property vs. KeyValuePair
What is the difference between classes Property and KeyValuePair?
Re: Property vs. KeyValuePair
Posted by Matt Sicker <bo...@gmail.com>.
Properties are automatically interpolated and used as interpolatable values
while KeyValuePairs are not (at least IIRC). Basically, it seems to be a
semantic difference.
On 9 January 2017 at 04:43, Remko Popma <re...@gmail.com> wrote:
> They seem similar, but slightly different usage: KeyValuePair is used in
> Filters and Layouts (via LoggerFields), where Property is used in
> Configuration and some Appenders.
>
> Otherwise they seem structurally very similar.
>
> Some historical reason?
>
> Sent from my iPhone
>
> > On Jan 9, 2017, at 17:54, Mikael Ståldal <mi...@magine.com>
> wrote:
> >
> > What is the difference between classes Property and KeyValuePair?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>
--
Matt Sicker <bo...@gmail.com>
Re: Property vs. KeyValuePair
Posted by Remko Popma <re...@gmail.com>.
They seem similar, but slightly different usage: KeyValuePair is used in Filters and Layouts (via LoggerFields), where Property is used in Configuration and some Appenders.
Otherwise they seem structurally very similar.
Some historical reason?
Sent from my iPhone
> On Jan 9, 2017, at 17:54, Mikael Ståldal <mi...@magine.com> wrote:
>
> What is the difference between classes Property and KeyValuePair?
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org