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

Ralph Goers commented on LOG4J2-2889:
-------------------------------------

The HtmlLayout in Log4j 2 was implemented to match what the Log4j 1 HtmlLayout 
did. It prints the timestamp as the number of milliseconds since the JVM 
started. I have no idea why it was decided to do that.  There currently is no 
way to customize the format. 

I am not aware that any of the current committers use this layout nor do we get 
many questions about it so I wouldn't expect this to be a high priority for any 
of us to work on.

Patches are always welcome.

> Data-Time Formate in HTML Layout
> --------------------------------
>
>                 Key: LOG4J2-2889
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2889
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Layouts
>    Affects Versions: 2.13.3
>            Reporter: karthikeyan Mourougane
>            Priority: Blocker
>              Labels: easyfix
>             Fix For: 2.13.3
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Hi Team,
> As per the documentation we have set the HTML layout as below:
> {{<HTMLLayout charset=}}{{"UTF-8"}} {{title=}}{{"Test Logs"}} 
> {{locationInfo=}}{{"true"}} {{/>}}
> {{          }}
> In the HTML page, time stamp is not in proper format:
> ||Time||Thread||Level||Logger||Message||
> |350350462|HTTP Handler 
> 10.170.233.124|{color:#993300}*WARN*{color}|adminServer|
> How to change date time format to custom timestamp.
>  
> Thanks
> Karthick



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to