Log4j 2
  1. Log4j 2
  2. LOG4J2-186

log4j configuration fails when reading configuration file with underlying operation system encoding-language settings

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta3
    • Fix Version/s: 2.0-beta4
    • Component/s: Configurators
    • Labels:
      None
    • Environment:

      os: red-hat server

      Description

      we have red-hat application servers with locale settings set to turkish ("tr", "TR").
      in our log4j-config.xml file we have somme loggers with levels = info.
      when log4j reads this file it converts it to İNFO (with uppercase İ which is the case in turkish) and some ecxeptions occurs and log4j cannot succesfully configures.

      i attached the file we use.

      1. log4j2-config.xml
        1 kB
        fatih guleryuz

        Activity

        fatih guleryuz created issue -
        fatih guleryuz made changes -
        Field Original Value New Value
        Description we have red-hat application servers with locale settings set tu turkish ("tr", "TR").
        in our log4j-config.xml file web have somme logger with levels = info.
        when log4j reads this file it convert it to İNFO with(uppercase İ which is the case in turkish) and some ecxeptions occurs and log4j cannot succesfully configures.

        our xml file starts with <?xml version="1.0" encoding="UTF-8"?>

        we have red-hat application servers with locale settings set to turkish ("tr", "TR").
        in our log4j-config.xml file we have somme loggers with levels = info.
        when log4j reads this file it converts it to İNFO (with uppercase İ which is the case in turkish) and some ecxeptions occurs and log4j cannot succesfully configures.

        our xml file starts with <?xml version="1.0" encoding="UTF-8"?>

        fatih guleryuz made changes -
        Attachment log4j2-config.xml [ 12575872 ]
        fatih guleryuz made changes -
        Description we have red-hat application servers with locale settings set to turkish ("tr", "TR").
        in our log4j-config.xml file we have somme loggers with levels = info.
        when log4j reads this file it converts it to İNFO (with uppercase İ which is the case in turkish) and some ecxeptions occurs and log4j cannot succesfully configures.

        our xml file starts with <?xml version="1.0" encoding="UTF-8"?>

        we have red-hat application servers with locale settings set to turkish ("tr", "TR").
        in our log4j-config.xml file we have somme loggers with levels = info.
        when log4j reads this file it converts it to İNFO (with uppercase İ which is the case in turkish) and some ecxeptions occurs and log4j cannot succesfully configures.

        i attached the file we use.

        Gary Gregory made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0-beta4 [ 12323477 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            fatih guleryuz
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 24h
              24h
              Remaining:
              Remaining Estimate - 24h
              24h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development