Unless I completely screwed up SerializedLayout should be using the proxy when the LogEvent is serialized. See item #78 in Effective Java.
Ralph On Mar 30, 2014, at 8:04 PM, Gary Gregory <[email protected]> wrote: > As I am working on LOG4J2-583 I ran into > core.impl.Log4jLogEvent.LogEventProxy. > > - LogEventProxy is used to move events across threads internally > - A real Log4jLogEvent is used in the SerializedLayout. > > Why the different? > > As you answer, if you can avoid committing to Log4jLogEvent that would be > great as I currently have pending changes there related to LOG4J2-583. > > I am wondering if SerializedLayout should use LogEventProxy or if > LogEventProxy is a leftover from old development. > > Thank you, > Gary > -- > E-Mail: [email protected] | [email protected] > Java Persistence with Hibernate, Second Edition > JUnit in Action, Second Edition > Spring Batch in Action > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory
