You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Mikael Ståldal (JIRA)" <ji...@apache.org> on 2017/04/28 14:47:04 UTC
[jira] [Commented] (LOG4J2-1752) Add ISO8601 format to timestamp in
JSONLayout
[ https://issues.apache.org/jira/browse/LOG4J2-1752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15988940#comment-15988940 ]
Mikael Ståldal commented on LOG4J2-1752:
----------------------------------------
If you want to try implementing this, consider doing it in AbstractJacksonLayout so it can be applied for JsonLayout, XmlLayout and YamlLayout.
> Add ISO8601 format to timestamp in JSONLayout
> ---------------------------------------------
>
> Key: LOG4J2-1752
> URL: https://issues.apache.org/jira/browse/LOG4J2-1752
> Project: Log4j 2
> Issue Type: Improvement
> Components: Layouts
> Affects Versions: 2.7
> Reporter: Jonas Lindholm
> Priority: Minor
> Labels: json, layout
>
> The [JSONLayout|https://logging.apache.org/log4j/2.x/manual/layouts.html#JSONLayout] formats the timestamp field to timeMillis.
> Moving from [logstash-logback-encoder|https://github.com/logstash/logstash-logback-encoder] it would be nice to be able to format the timestamp with ISO 8601 as the date pattern instead.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)