It seems you have a point there, %X{propname} creates the same output as
%properties{propname}
The javadoc on those to conversion patterns though suggests that this are two
different patterns:
_X_ -- Used to output _the MDC_ (mapped diagnostic context) associated with
_the thread_ that generated the logging event...
_properties_ -- Used to output _the Properties_ associated with the _logging
event_...
This is at best misleading and imo rather a bug in the documentation.
@All: Thanks for your help :-)
-----Ursprüngliche Nachricht-----
Von: Curt Arnold [mailto:[email protected]] Im Auftrag von Curt Arnold
Gesendet: Montag, 10. Mai 2010 15:21
An: Log4J Users List
Betreff: Re: AW: Usage of EnhanedPatternLayout
On May 10, 2010, at 5:48 AM, Huber Christian (IT-DIWA) wrote:
> I would use it when I will try to implement the usage of this class, but so
> far I am trying to understand how those properties should/can be set.
>
I may be off on some nuance, but I believe %properties is a synonym for %x in
the same way that %logger is a synonym for %c.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]