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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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!

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: