Currently Log4jLogEvent creates a ThrowableProxy in the constructor (if Throwable is non-null). I would like to construct the ThrowableProxy lazily: only if the Log4jLogEvent is serialized or if its getThrowableProxy method is called. (Already did this for RingBufferLogEvent.)
Does anyone have any concerns against doing this? Details: https://issues.apache.org/jira/browse/LOG4J2-250