Log4j 2
  1. Log4j 2
  2. LOG4J2-415

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-rc1
    • Component/s: Layouts
    • Labels:
      None
    • Environment:

      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!

      1. Log4j2-415.diff
        11 kB
        Gary Gregory

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Gary Gregory
            Reporter:
            Gary Gregory
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development