logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: [jira] [Commented] (LOG4J2-1299) Add pattern converter for thread id in PatternLayout
Date Tue, 01 Mar 2016 18:11:55 GMT
New fields is backwards compatible, but not forwards compatible. You could
add custom readObject and writeObject methods if we really need BC and FC.

On 1 March 2016 at 11:40, Gary Gregory <garydgregory@gmail.com> wrote:

> New fields for thread ID and thread priority in the log event class, which
> is of course serializable.
>
> Gary
> On Mar 1, 2016 8:27 AM, "Matt Sicker" <boards@gmail.com> wrote:
>
>> How does it break serialization?
>>
>> On 1 March 2016 at 10:13, Gary Gregory (JIRA) <jira@apache.org> wrote:
>>
>>>
>>>     [
>>> https://issues.apache.org/jira/browse/LOG4J2-1299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15173959#comment-15173959
>>> ]
>>>
>>> Gary Gregory commented on LOG4J2-1299:
>>> --------------------------------------
>>>
>>> My patch is almost ready. Note that this will break log event
>>> serialization with 2.5.
>>>
>>> > Add pattern converter for thread id in PatternLayout
>>> > ----------------------------------------------------
>>> >
>>> >                 Key: LOG4J2-1299
>>> >                 URL: https://issues.apache.org/jira/browse/LOG4J2-1299
>>> >             Project: Log4j 2
>>> >          Issue Type: Improvement
>>> >          Components: Core, Pattern Converters
>>> >    Affects Versions: 2.5
>>> >            Reporter: Remko Popma
>>> >            Assignee: Gary Gregory
>>> >
>>> > As requested here:
>>> >
>>> http://stackoverflow.com/questions/14359044/display-thread-id-instead-thread-name-in-log
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>> Matt Sicker <boards@gmail.com>
>>
>


-- 
Matt Sicker <boards@gmail.com>

Mime
View raw message