logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thome, Jerry" <jth...@follett.com>
Subject log4j2 Json Layout
Date Wed, 23 Jan 2019 19:36:17 GMT
We're using Vert.x and graduated from using JUL to log4j2.  Speed and functionality are great.

Is there information on the choice to represent the timestamp via "instant" as shown below?
 It's hard to know what that time represents at a glance.

...
  "endOfBatch" : false,
  "loggerFqcn" : "io.vertx.core.logging.Logger",
  "instant" : {
    "epochSecond" : 1548267755,
    "nanoOfSecond" : 66000000
  },
  "threadId" : 20,
  "threadPriority" : 5,
  "source" : {
...

As there seem to be very few formatting options with the Json Layout, do users tend to customize
the entire layout to represent the timestamp in a different format?

Thanks,
Jerry

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message