You asked this exact question on September 27, 2013. I doubt you got an answer. 

The usage of the eventPrefix was removed in the patch for LOG4J2-355 and was 
noticed by the author of the patch. Unfortunately I was in the middle of 
looking for a job at the time and don’t seem to have responded.

The mdcPrefix allows ThreadContext attributes to be prefixed with a token to 
make it clear they are ThreadContext items. The eventPrefix was supposed to 
allow non-ThreadContext items to be prefixed should you want to do that, but 
the code to do that was removed in that patch.  I’m not really sure if it is 
needed. As Tibor pointed out, those items can now be placed in their own 
StructuredData element.  The eventPrefix doesn’t appear to be documented in the 
manual.

Ralph

> On Jan 18, 2016, at 5:48 PM, Gary Gregory <[email protected]> wrote:
> 
> This ivar is not used: 
> org.apache.logging.log4j.core.layout.Rfc5424Layout.eventPrefix
> 
> Is this an incomplete feature or incomplete clean up?
> 
> Gary
> 
> -- 
> E-Mail: [email protected] <mailto:[email protected]> | 
> [email protected]  <mailto:[email protected]>
> Java Persistence with Hibernate, Second Edition 
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/> 
> Home: http://garygregory.com/ <http://garygregory.com/>
> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>

Reply via email to