[
https://issues.apache.org/jira/browse/LOG4J2-1299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Gregory updated LOG4J2-1299:
---------------------------------
Description:
As requested here:
http://stackoverflow.com/questions/14359044/display-thread-id-instead-thread-name-in-log
h2. Thread ID
Use one of the following:
- {{%T}}
- {{%tid}}
- {{%threadId}}
h2. Thread Priority
Use one of the following:
- {{%tp}}
- {{%threadPriority}}
This create creates an incompatibility for serialization because we now have
two new {{LogEvent}} fields: thread ID and thread priority.
was:
As requested here:
http://stackoverflow.com/questions/14359044/display-thread-id-instead-thread-name-in-log
This create creates an incompatibility for serialization because we now have
two new {{LogEvent}} fields: thread ID and thread priority.
> Add pattern converter for thread id and priority 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
> Fix For: 2.6
>
>
> As requested here:
> http://stackoverflow.com/questions/14359044/display-thread-id-instead-thread-name-in-log
> h2. Thread ID
> Use one of the following:
> - {{%T}}
> - {{%tid}}
> - {{%threadId}}
> h2. Thread Priority
> Use one of the following:
> - {{%tp}}
> - {{%threadPriority}}
> This create creates an incompatibility for serialization because we now have
> two new {{LogEvent}} fields: thread ID and thread priority.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]