Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-302

Wrong date format in access log

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • 1.3.6, 1.4.6
    • None
    • None
    • None
    • French default locale

    Description

      Hi,

      According to http://httpd.apache.org/docs/current/mod/mod_log_config.html#formats (see '%t' documentation) and http://httpd.apache.org/docs/current/logs.html#common, the output should be "10/Dec/2010" (with no accents, even with my french environment).

      So, i think the CoreConstants.CLF_DATE_PATTERN should be "dd/MMM/yyyy:HH:mm:ss Z"; and the SimpleDateFormat should be instantiated with Locale.EN_US or Locale.ENGLISH for the %t default case.

      Regards

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            vincent.ricard Vincent Ricard
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: