Hello,

I have pushed a branch (#495
<https://github.com/apache/logging-log4j2/pull/495>) incorporating a fix
for the formatting of nanoseconds in JsonTemplateLayout. In a nutshell,
FixedDateFormat and FastDateFormat support only upto millisecond precision.
Hence, I try to employ the following formatters in decreasing efficiency
order:

   1. Log4j FixedDateFormat
   2. Log4j FastDateFormat
   3. Java DataTimeFormatter

The question you should be asking, how did I make DataTimeFormatter work
with Log4j Instants? I have modified MutableInstant to extend from
TemporalAccessor and this is the particular part of the review I kindly ask
you to check.

Kind regards.

Reply via email to