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

Date formatter always uses default locale

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None

    Description

      Hi,

      I'm using logback to collect logs of application running on end user machines. The logs have a date in it's pattern. The problem I'm having is that timestamps from arabic machines are for example looks like ١٦:٤٧:٠٤.٠٣٢
      While I can use Google translate to translate them to english it is still not the best way to do it. Looking at the sources and docs of logback I didn't found any way of supplying custom locale for date, and from source code it looks like that date formatter is instantiated using default constructor which implicitly uses current default locale (which happens to be arabic on arabic machines et cetera).

      Please provide a way to choose locale for dates printed into logs explicitly.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            dant3 Vyacheslav Blinov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: