Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-415

Format log event time as UNIX time (seconds or milliseconds).

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-rc1
    • Layouts
    • None

    Description

      Format log event time as UNIX time.

      This patch proposes two solutions, we should pick one.

      Either use %d

      {UNIX}

      and modify the existing DatePatternConverter which makes the class a tiny bit more convoluted.

      Or, create a new UnixTimePatternConverter, which is simple, but duplicates the pattern of DatePatternConverter.

      Discuss!

      Attachments

        1. Log4j2-415.diff
          11 kB
          Gary D. Gregory

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: