You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "John Strickler (JIRA)" <ji...@apache.org> on 2016/04/01 16:58:25 UTC

[jira] [Updated] (LOG4J2-1347) AsyncAppender - Allow serialization of custom LogEvents

     [ https://issues.apache.org/jira/browse/LOG4J2-1347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Strickler updated LOG4J2-1347:
-----------------------------------
    Description: 
This request is for an improvement to AsyncAppender to allow sublasses of Log4jLogEvent to be serialized without losing their specific type.

Currently functionality, is that AsyncAppender will serialize all subclasses back to a true instance of Log4jLogEvent.  In the process, all extra information is lost that was provided by the subclass.

_AsyncAppender, line 156:_
bq. final Serializable serialized = Log4jLogEvent.serialize(coreEvent, includeLocation);

*Use Case*

Subclasses of Log4jLogEvent that contain the authenticated principal to be logged.


  was:
This request is for an improvement to AsyncAppender to allow sublasses of Log4jLogEvent to be serialized without losing their specific type.

Currently functionality, is that AsyncAppender will serialize all subclasses back to a true instance of Log4jLogEvent.  In the process, all extra information is lost that was provided by the subclass.

_AsyncAppender, line 156:_
bq. final Serializable serialized = Log4jLogEvent.serialize(coreEvent, includeLocation);

*Use Case*

Subclasses of Log4jLogEvent that pass the authenticated principal to be logged.



> AsyncAppender - Allow serialization of custom LogEvents
> -------------------------------------------------------
>
>                 Key: LOG4J2-1347
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1347
>             Project: Log4j 2
>          Issue Type: Improvement
>            Reporter: John Strickler
>            Priority: Minor
>
> This request is for an improvement to AsyncAppender to allow sublasses of Log4jLogEvent to be serialized without losing their specific type.
> Currently functionality, is that AsyncAppender will serialize all subclasses back to a true instance of Log4jLogEvent.  In the process, all extra information is lost that was provided by the subclass.
> _AsyncAppender, line 156:_
> bq. final Serializable serialized = Log4jLogEvent.serialize(coreEvent, includeLocation);
> *Use Case*
> Subclasses of Log4jLogEvent that contain the authenticated principal to be logged.



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

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