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

Remko Popma edited comment on LOG4J2-1883 at 1/28/18 1:37 PM:
--------------------------------------------------------------

Fixed in master.

 

See  previous comment for a summary of the changes.

[~Anthony Maire],  [[email protected]], please verify and close.


was (Author: [email protected]):
Fixed in master.

 

See  previous comment for a summary of the changes.

[~Anthony Maire],  [[email protected]], please verify and close.

> Support precise timestamps (microsecond and nanosecond level)
> -------------------------------------------------------------
>
>                 Key: LOG4J2-1883
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1883
>             Project: Log4j 2
>          Issue Type: New Feature
>          Components: Configurators
>         Environment: Java 9
>            Reporter: Madhava Dass
>            Assignee: Remko Popma
>            Priority: Major
>             Fix For: 2.11.0
>
>
> Used log4j and 'log4j2.xml' to configure timestamp format as:
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <Configuration status="WARN">
>     <Appenders>
>         <Console name="Console" target="SYSTEM_OUT">
>             <PatternLayout 
> pattern="[%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}{UTC}][%level][%logger{36}]:%msg%n"/>
>         </Console>
>     </Appenders>
>     <Loggers>
>         <Root level="DEBUG">
>             <AppenderRef ref="Console"/>
>         </Root>
>     </Loggers>
> </Configuration>
> {code}
> This pattern produces the time stamp as:
> {code}
> [2017-03-29T13:55:28.363000][null]:[Thread-1]: - <message>
> {code}
> The desired output is:
> {code}
> [2017-03-29T13:55:28.363701-07:00][null]:[Thread-1]: - <message>
> {code}
> Different versions of JDKs were tried including JDK 1.8. It does not seem to 
> make any difference in the outcome.
> Is there a way to get the desired time stamp through pattern matching 
> configuration in the '*.xml' file?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to