[ 
https://issues.apache.org/jira/browse/LOG4J2-1795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15832602#comment-15832602
 ] 

Remko Popma commented on LOG4J2-1795:
-------------------------------------

We can use a similar approach as with 
[SortedArrayStringMap|https://github.com/apache/logging-log4j2/blob/master/log4j-api/src/main/java/org/apache/logging/log4j/util/SortedArrayStringMap.java],
 so we serialize where possible and drop the rest. Wrapping in MarshalledObject 
to handle NoClassDefErrors. 
But there needs to be a request. 

> LogEvent serialization deserialization
> --------------------------------------
>
>                 Key: LOG4J2-1795
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1795
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.7
>            Reporter: Alexandru Ionita
>              Labels: serializable
>
> Deserialization of a LogEvent that has been serialized with the 
> Log4jLogEvent.serialize method fails after the serialized object went through 
> a byte stream.
> Here is a test that demonstrates the issue:
> https://github.com/nucatus/LogEventSerializationPOC



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to